|
1 | 1 | <?php |
2 | 2 |
|
3 | | -use Rector\CodeQuality\Rector\ClassMethod\ExplicitReturnNullRector; |
4 | 3 | use Rector\CodeQuality\Rector\For_\ForRepeatedCountToOwnVariableRector; |
5 | 4 | use Rector\CodeQuality\Rector\If_\CombineIfRector; |
6 | 5 | use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector; |
7 | 6 | use Rector\CodeQuality\Rector\If_\ShortenElseIfRector; |
| 7 | +use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector; |
| 8 | +use Rector\CodingStyle\Rector\If_\NullableCompareToNullRector; |
| 9 | +use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector; |
8 | 10 | use Rector\Config\RectorConfig; |
9 | 11 | use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector; |
10 | 12 | use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector; |
11 | | -use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector; |
| 13 | +use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector; |
| 14 | +use Rector\TypeDeclaration\Rector\ClassMethod\ParamTypeByMethodCallTypeRector; |
12 | 15 | use Rector\ValueObject\PhpVersion; |
13 | 16 |
|
14 | 17 | return RectorConfig::configure() |
15 | | - ->withRules([ |
16 | | - TypedPropertyFromStrictConstructorRector::class |
17 | | - ]) |
18 | 18 | ->withSkip([ |
19 | 19 | CombineIfRector::class, |
20 | 20 | ExplicitBoolCompareRector::class, |
21 | 21 | ForRepeatedCountToOwnVariableRector::class, |
22 | 22 | RemoveAlwaysTrueIfConditionRector::class => [ |
23 | 23 | __DIR__ . '/src/Processors/ExpandEnums.php', |
24 | | - ] , |
| 24 | + ], |
25 | 25 | RemoveDeadInstanceOfRector::class => [ |
26 | 26 | __DIR__ . '/src/Processors/ExpandEnums.php', |
27 | 27 | ], |
28 | 28 | ShortenElseIfRector::class, |
| 29 | + NewlineAfterStatementRector::class, |
| 30 | + NullableCompareToNullRector::class, |
| 31 | + StringClassNameToClassConstantRector::class => [ |
| 32 | + __DIR__ . '/src/Analysers/DocBlockParser.php', |
| 33 | + ], |
| 34 | + EncapsedStringsToSprintfRector::class, |
| 35 | + ParamTypeByMethodCallTypeRector::class => [ |
| 36 | + __DIR__ . '/src/Serializer.php', |
| 37 | + ], |
29 | 38 | ]) |
30 | | - ->withPreparedSets(true, true) |
31 | | - ->withPhpVersion(PhpVersion::PHP_74); |
| 39 | + ->withPreparedSets(true, true, true, true) |
| 40 | + ->withPhpVersion(PhpVersion::PHP_74) |
| 41 | + ->withPhpSets(); |
0 commit comments