mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
600218d107
e03da0434b
Exclude StaticClosureRector and StaticArrowFunctionRector from rector-preset (#5927)
20 lines
1.2 KiB
PHP
20 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace RectorPrefix202405;
|
|
|
|
use Rector\CodeQuality\Rector\FuncCall\BoolvalToTypeCastRector;
|
|
use Rector\CodeQuality\Rector\FuncCall\FloatvalToTypeCastRector;
|
|
use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector;
|
|
use Rector\CodeQuality\Rector\FuncCall\StrvalToTypeCastRector;
|
|
use Rector\CodingStyle\Rector\Plus\UseIncrementAssignRector;
|
|
use Rector\CodingStyle\Rector\PostInc\PostIncDecToPreIncDecRector;
|
|
use Rector\Config\RectorConfig;
|
|
use Rector\Privatization\Rector\Class_\FinalizeTestCaseClassRector;
|
|
use Rector\TypeDeclaration\Rector\BooleanAnd\BinaryOpNullableToInstanceofRector;
|
|
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
|
|
use Rector\TypeDeclaration\Rector\While_\WhileNullableToInstanceofRector;
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
$rectorConfig->rules([DeclareStrictTypesRector::class, BinaryOpNullableToInstanceofRector::class, WhileNullableToInstanceofRector::class, IntvalToTypeCastRector::class, StrvalToTypeCastRector::class, BoolvalToTypeCastRector::class, FloatvalToTypeCastRector::class, PostIncDecToPreIncDecRector::class, UseIncrementAssignRector::class, FinalizeTestCaseClassRector::class]);
|
|
};
|