Skip to content

Commit 6d662fb

Browse files
committed
style: remove new rector rule
1 parent 30e589c commit 6d662fb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rector.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector;
66
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
77
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
8-
use Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;
98
use Rector\Config\RectorConfig;
109
use Rector\DeadCode\Rector\PropertyProperty\RemoveNullPropertyInitializationRector;
1110
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
1211
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
1312
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
14-
use Rector\Php74\Rector\Ternary\ParenthesizeNestedTernaryRector;
1513
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
1614
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
1715
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
@@ -21,8 +19,8 @@
2119
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
2220
use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector;
2321
use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector;
22+
use Rector\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector;
2423
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
25-
use Rector\TypeDeclaration\Rector\Closure\ClosureReturnTypeRector;
2624
use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector;
2725

2826
return RectorConfig::configure()
@@ -54,10 +52,10 @@
5452
RestoreDefaultNullToNullableTypePropertyRector::class,
5553
ReturnNeverTypeRector::class,
5654
StaticCallOnNonStaticToInstanceCallRector::class,
57-
ClosureReturnTypeRector::class,
5855
EncapsedStringsToSprintfRector::class,
5956
AddArrowFunctionReturnTypeRector::class,
6057
PrivatizeFinalClassMethodRector::class,
58+
NarrowObjectReturnTypeRector::class,
6159
])
6260
->withParallel(300, 10, 10)
6361
->withPreparedSets(

0 commit comments

Comments
 (0)