|
2 | 2 |
|
3 | 3 | declare(strict_types=1);
|
4 | 4 |
|
5 |
| -use Rector\CodeQuality\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector; |
6 |
| -use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector; |
7 |
| -use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector; |
8 |
| -use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector; |
9 |
| -use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector; |
10 | 5 | use Rector\Config\RectorConfig;
|
11 |
| -use Rector\EarlyReturn\Rector\Return_\ReturnBinaryOrToEarlyReturnRector; |
12 |
| -use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; |
13 |
| -use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; |
14 | 6 | use Rector\Set\ValueObject\LevelSetList;
|
15 |
| -use Rector\Set\ValueObject\SetList; |
16 |
| -use Rector\TypeDeclaration\Rector\FunctionLike\AddReturnTypeDeclarationFromYieldsRector; |
17 | 7 |
|
18 | 8 | return static function (RectorConfig $config): void {
|
19 | 9 | $config->paths([__DIR__ . '/src']);
|
20 | 10 | $config->cacheDirectory(__DIR__ . '/vendor/.cache.rector');
|
21 | 11 |
|
22 | 12 | $config->sets([
|
23 | 13 | LevelSetList::UP_TO_PHP_81,
|
24 |
| - SetList::TYPE_DECLARATION, |
25 |
| - SetList::CODE_QUALITY, |
26 |
| - SetList::CODING_STYLE, |
27 |
| - SetList::EARLY_RETURN, |
28 |
| - ]); |
29 |
| - |
30 |
| - $config->skip([ |
31 |
| - ClassPropertyAssignToConstructorPromotionRector::class, |
32 |
| - ReadOnlyPropertyRector::class, |
33 |
| - CatchExceptionNameMatchingTypeRector::class, |
34 |
| - SplitDoubleAssignRector::class, |
35 |
| - FlipTypeControlToUseExclusiveTypeRector::class, |
36 |
| - ReturnBinaryOrToEarlyReturnRector::class, |
37 |
| - LocallyCalledStaticMethodToNonStaticRector::class, |
38 |
| - EncapsedStringsToSprintfRector::class, |
39 |
| - AddReturnTypeDeclarationFromYieldsRector::class, |
40 | 14 | ]);
|
41 | 15 | };
|
0 commit comments