Skip to content

Commit

Permalink
chore: skip RemoveAlwaysTrueIfConditionRector for AutoRouterImproved
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 3, 2023
1 parent 6c09f35 commit 60f82bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector;
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
Expand Down Expand Up @@ -118,6 +119,11 @@
],

SimplifyRegexPatternRector::class,

RemoveAlwaysTrueIfConditionRector::class => [
// false positive. @TODO remove if Rector is fixed.
__DIR__ . '/system/Router/AutoRouterImproved.php',
],
]);

// auto import fully qualified class names
Expand Down

0 comments on commit 60f82bf

Please sign in to comment.