|
7 | 7 | use Rector\DeadCode\Rector\ClassLike\RemoveAnnotationRector;
|
8 | 8 | use Rector\Php70\Rector\StmtsAwareInterface\IfIssetToCoalescingRector;
|
9 | 9 | use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
|
| 10 | +use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; |
| 11 | +use Rector\Php80\Rector\Class_\StringableForToStringRector; |
10 | 12 | use Rector\Php80\Rector\Switch_\ChangeSwitchToMatchRector;
|
11 | 13 | use Rector\Renaming\Rector\Cast\RenameCastRector;
|
12 | 14 | use Rector\Renaming\ValueObject\RenameCast;
|
|
18 | 20 | __DIR__ . '/tests',
|
19 | 21 | __DIR__ . '/tools',
|
20 | 22 | ])
|
21 | | - ->withPhpSets(php74: true) |
| 23 | + ->withPhpSets(php80: true) |
22 | 24 | ->withComposerBased(phpunit: true)
|
23 | | - ->withRules([ |
24 | | - ChangeSwitchToMatchRector::class, |
25 | | - ]) |
26 | 25 | // All classes are public API by default, unless marked with @internal.
|
27 | 26 | ->withConfiguredRule(RemoveAnnotationRector::class, ['api'])
|
28 | 27 | // Fix PHP 8.5 deprecations
|
|
42 | 41 | ChangeSwitchToMatchRector::class => [
|
43 | 42 | __DIR__ . '/tests/SpecTests/Operation.php',
|
44 | 43 | ],
|
| 44 | + ClassPropertyAssignToConstructorPromotionRector::class, |
| 45 | + StringableForToStringRector::class => [ |
| 46 | + __DIR__ . '/src/Model/IndexInput.php', |
| 47 | + ], |
45 | 48 | ])
|
46 | 49 | // phpcs:enable
|
47 | 50 | ->withImportNames(importNames: false, removeUnusedImports: true);
|
0 commit comments