Skip to content

Commit e1ab0bf

Browse files
committed
chore: add skip rule for deprecated constructor param
1 parent 7058d3e commit e1ab0bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rector.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector;
2727
use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
2828
use Rector\Config\RectorConfig;
29+
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector;
2930
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
3031
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
3132
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
@@ -88,6 +89,11 @@
8889
__DIR__ . '/tests/system/Test/ReflectionHelperTest.php',
8990
],
9091

92+
RemoveUnusedConstructorParamRector::class => [
93+
// @TODO remove if deprecated $httpVerb is removed
94+
__DIR__ . 'system/Router/AutoRouterImproved.php',
95+
],
96+
9197
// call on purpose for nothing happen check
9298
RemoveEmptyMethodCallRector::class => [
9399
__DIR__ . '/tests',

0 commit comments

Comments
 (0)