Skip to content

Commit 0effdc8

Browse files
committed
ignore in rector
1 parent f0f2c26 commit 0effdc8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

rector.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
use Rector\CodingStyle\Rector\String_\UseClassKeywordForClassNameResolutionRector;
66
use Rector\Config\RectorConfig;
7+
use Rector\DeadCode\Rector\If_\RemoveAlwaysTrueIfConditionRector;
8+
use Rector\DeadCode\Rector\If_\RemoveDeadInstanceOfRector;
79
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
810
use Rector\PHPUnit\Set\PHPUnitSetList;
911

@@ -37,6 +39,16 @@
3739
__DIR__ . '/rules/DowngradePhp81/Rector/FuncCall/DowngradeFirstClassCallableSyntaxRector.php',
3840
],
3941

42+
RemoveAlwaysTrueIfConditionRector::class => [
43+
// false positive in or check usage
44+
__DIR__ . '/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php',
45+
],
46+
47+
RemoveDeadInstanceOfRector::class => [
48+
// false positive in or check usage
49+
__DIR__ . '/rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php',
50+
],
51+
4052
// test paths
4153
'**/Fixture/*',
4254
'**/Source/*',

0 commit comments

Comments
 (0)