Skip to content

Commit 0882c4d

Browse files
committed
Skip SwitchTrueToIfRector
1 parent 51ebed5 commit 0882c4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
55
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
66
use Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector;
7+
use Rector\CodeQuality\Rector\Switch_\SwitchTrueToIfRector;
78
use Rector\Config\RectorConfig;
89
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
910
use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector;
@@ -43,6 +44,7 @@
4344
AssertEqualsToSameRector::class => [
4445
__DIR__ . '/tests/TestCaseBase.php',
4546
],
47+
SwitchTrueToIfRector::class, // More expressive in some cases
4648
]);
4749
$rectorConfig->paths([
4850
__DIR__ . '/examples',

0 commit comments

Comments
 (0)