|
5 | 5 | use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector; |
6 | 6 | use Rector\Caching\ValueObject\Storage\FileCacheStorage; |
7 | 7 | use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector; |
8 | | -use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector; |
9 | 8 | use Rector\Config\RectorConfig; |
10 | 9 | use Rector\DeadCode\Rector\PropertyProperty\RemoveNullPropertyInitializationRector; |
11 | 10 | use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector; |
12 | 11 | use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector; |
13 | 12 | use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector; |
14 | | -use Rector\Php74\Rector\Ternary\ParenthesizeNestedTernaryRector; |
15 | 13 | use Rector\Php81\Rector\Array_\FirstClassCallableRector; |
16 | 14 | use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector; |
17 | 15 | use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; |
|
21 | 19 | use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector; |
22 | 20 | use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector; |
23 | 21 | use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector; |
| 22 | +use Rector\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector; |
24 | 23 | use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector; |
25 | | -use Rector\TypeDeclaration\Rector\Closure\ClosureReturnTypeRector; |
26 | 24 | use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector; |
27 | 25 |
|
28 | 26 | return RectorConfig::configure() |
|
54 | 52 | RestoreDefaultNullToNullableTypePropertyRector::class, |
55 | 53 | ReturnNeverTypeRector::class, |
56 | 54 | StaticCallOnNonStaticToInstanceCallRector::class, |
57 | | - ClosureReturnTypeRector::class, |
58 | 55 | EncapsedStringsToSprintfRector::class, |
59 | 56 | AddArrowFunctionReturnTypeRector::class, |
60 | 57 | PrivatizeFinalClassMethodRector::class, |
| 58 | + NarrowObjectReturnTypeRector::class, |
61 | 59 | ]) |
62 | 60 | ->withParallel(300, 10, 10) |
63 | 61 | ->withPreparedSets( |
|
0 commit comments