chore: add skip rule for deprecated constructor param

This commit is contained in:
kenjis 2023-06-08 08:10:45 +09:00
parent ab0ebb98ce
commit 27729b17fd
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -26,6 +26,7 @@ use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector;
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
@ -88,6 +89,11 @@ return static function (RectorConfig $rectorConfig): void {
__DIR__ . '/tests/system/Test/ReflectionHelperTest.php',
],
RemoveUnusedConstructorParamRector::class => [
// @TODO remove if deprecated $httpVerb is removed
__DIR__ . '/system/Router/AutoRouterImproved.php',
],
// call on purpose for nothing happen check
RemoveEmptyMethodCallRector::class => [
__DIR__ . '/tests',