|
17 | 17 | */ |
18 | 18 |
|
19 | 19 | use Ergebnis\Rector\Rules\Arrays\SortAssociativeArrayByKeyRector; |
20 | | -use Guanguans\PHPStanRules\Contract\ThrowableContract; |
21 | 20 | use Guanguans\RectorRules\Rector\Array_\SortListItemOfSameScalarTypeRector; |
22 | 21 | use Guanguans\RectorRules\Rector\File\AddNoinspectionDocblockToFileFirstStmtRector; |
23 | 22 | use Guanguans\RectorRules\Rector\Name\RenameToPsrNameRector; |
|
42 | 41 | use Rector\DowngradePhp81\Rector\FuncCall\DowngradeArrayIsListRector; |
43 | 42 | use Rector\EarlyReturn\Rector\If_\ChangeOrIfContinueToMultiContinueRector; |
44 | 43 | use Rector\EarlyReturn\Rector\Return_\ReturnBinaryOrToEarlyReturnRector; |
| 44 | +use Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector; |
45 | 45 | use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector; |
46 | 46 | use Rector\PHPUnit\Set\PHPUnitSetList; |
47 | 47 | use Rector\Renaming\Rector\FuncCall\RenameFunctionRector; |
|
137 | 137 | 'StaticClosureCanBeUsedInspection', |
138 | 138 | ], |
139 | 139 | ]) |
140 | | - ->withConfiguredRule(NewExceptionToNewAnonymousExtendsExceptionImplementsRector::class, [ThrowableContract::class]) |
| 140 | + // ->withConfiguredRule(NewExceptionToNewAnonymousExtendsExceptionImplementsRector::class, [ThrowableContract::class]) |
141 | 141 | ->registerDecoratingNodeVisitor(ParentConnectingVisitor::class) |
142 | 142 | ->withConfiguredRule(RenameToPsrNameRector::class, [ |
143 | 143 | 'MIT', |
@@ -200,9 +200,8 @@ classes(static fn (string $class, string $file): bool => str_starts_with($class, |
200 | 200 | WrapEncapsedVariableInCurlyBracesRector::class, |
201 | 201 | ]) |
202 | 202 | ->withSkip([ |
203 | | - NewExceptionToNewAnonymousExtendsExceptionImplementsRector::class => [ |
204 | | - __DIR__.'/src/Support/helpers.php', |
205 | | - __DIR__.'/tests/Support/HelpersTest.php', |
| 203 | + RenameParamToMatchTypeRector::class => [ |
| 204 | + __DIR__.'/src/Rule/*Rule.php', |
206 | 205 | ], |
207 | 206 | SortAssociativeArrayByKeyRector::class => [ |
208 | 207 | __DIR__.'/src/', |
|
0 commit comments