|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | 5 | use Rector\Config\RectorConfig; |
| 6 | +use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector; |
| 7 | +use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; |
| 8 | +use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; |
| 9 | +use Rector\Php82\Rector\Class_\ReadOnlyClassRector; |
6 | 10 |
|
7 | 11 | return RectorConfig::configure() |
8 | 12 | ->withPaths([ |
9 | | - __DIR__ . '/../../config', |
10 | | - __DIR__ . '/../../src', |
11 | | - __DIR__ . '/../../tests', |
12 | | - __DIR__ . '/../../templates', |
| 13 | + __DIR__ . '/../../config', |
| 14 | + __DIR__ . '/../../src', |
| 15 | + __DIR__ . '/../../tests', |
| 16 | + __DIR__ . '/../../templates', |
13 | 17 | ]) |
14 | | - // uncomment to reach your current PHP version |
15 | | -// ->withPhpSets() |
| 18 | + ->withPhpSets() |
16 | 19 | ->withAttributesSets(all: true) |
17 | 20 | ->withComposerBased(symfony: true, twig: true, doctrine: true, phpunit: true) |
18 | 21 | ->withTypeCoverageLevel(10) |
19 | 22 | ->withDeadCodeLevel(10) |
20 | | - ->withCodeQualityLevel(0) |
21 | | -; |
| 23 | + ->withCodeQualityLevel(10) |
| 24 | + ->withSkip([ |
| 25 | + ReadOnlyClassRector::class, |
| 26 | + ReadOnlyPropertyRector::class, |
| 27 | + ClassPropertyAssignToConstructorPromotionRector::class, |
| 28 | + RestoreDefaultNullToNullableTypePropertyRector::class, |
| 29 | + ]); |
0 commit comments