|
13 | 13 | use Rector\Config\RectorConfig; |
14 | 14 | use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector; |
15 | 15 | use Rector\Doctrine\Bundle230\Rector\Class_\AddAnnotationToRepositoryRector; |
| 16 | +use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; |
| 17 | +use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; |
16 | 18 | use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector; |
17 | 19 | use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\AddInstanceofAssertForNullableInstanceRector; |
18 | 20 | use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertEmptyNullableObjectToAssertInstanceofRector; |
|
34 | 36 | ->withComposerBased(doctrine: true, phpunit: true, symfony: true) |
35 | 37 | ->withPreparedSets(deadCode: true, codeQuality: true, privatization: true, rectorPreset: true, phpunitCodeQuality: true, symfonyCodeQuality: true) |
36 | 38 | ->withAttributesSets(all: true) |
| 39 | + ->withPhpSets(php80: true) |
37 | 40 | ->withConfiguredRule(RenameFunctionRector::class, [ |
38 | 41 | 'implode' => 'join', |
39 | 42 | 'join' => 'join', |
|
42 | 45 | AddAnnotationToRepositoryRector::class, |
43 | 46 | AddInstanceofAssertForNullableInstanceRector::class, |
44 | 47 | AssertEmptyNullableObjectToAssertInstanceofRector::class, |
| 48 | + ClosureToArrowFunctionRector::class, |
45 | 49 | CombineIfRector::class, |
46 | 50 | ConstraintOptionsToNamedArgumentsRector::class, |
47 | 51 | DeclareStrictTypesRector::class, |
|
56 | 60 | SimplifyIfReturnBoolRector::class, |
57 | 61 | ThrowWithPreviousExceptionRector::class, |
58 | 62 | UseIdenticalOverEqualWithSameTypeRector::class, |
| 63 | + ClassPropertyAssignToConstructorPromotionRector::class => [ |
| 64 | + __DIR__.'/src/DTO/*', |
| 65 | + ], |
59 | 66 | ]) |
60 | 67 | ; |
0 commit comments