Skip to content

Commit 8b9fc10

Browse files
committed
skip buggy rector rule
see rectorphp/rector#8916
1 parent 1e46745 commit 8b9fc10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_test/rector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
use Rector\Set\ValueObject\SetList;
4141
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
4242
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector;
43+
use Rector\DeadCode\Rector\If_\ReduceAlwaysFalseIfOrRector;
4344

4445
return static function (RectorConfig $rectorConfig): void {
4546
// FIXME we may want to autoload these later
@@ -131,6 +132,7 @@
131132
RemoveUselessReturnTagRector::class, // keep doc blocks
132133
ExplicitReturnNullRector::class, // we sometimes return void or string intentionally
133134
UseIdenticalOverEqualWithSameTypeRector::class, // probably a good idea, maybe later
135+
ReduceAlwaysFalseIfOrRector::class, // see rectorphp/rector#8916
134136

135137
]);
136138

0 commit comments

Comments
 (0)