Skip to content

Commit e2ef9a9

Browse files
committed
fix: suppress RemoveExtraParametersRector false-positive for is_cli override
1 parent d3249e7 commit e2ef9a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector;
3232
use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector;
3333
use Rector\Php70\Rector\FuncCall\RandomFunctionRector;
34+
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
3435
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
3536
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
3637
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
@@ -107,6 +108,10 @@
107108
__DIR__ . '/system/HTTP/Response.php',
108109
],
109110

111+
RemoveExtraParametersRector::class => [
112+
__DIR__ . '/tests/system/Debug/ToolbarTest.php',
113+
],
114+
110115
// check on constant compare
111116
UnwrapFutureCompatibleIfPhpVersionRector::class => [
112117
__DIR__ . '/system/Autoloader/Autoloader.php',

0 commit comments

Comments
 (0)