diff options
author | Andreas Gohr <andi@splitbrain.org> | 2024-12-02 14:20:25 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2024-12-02 14:20:25 +0100 |
commit | 8b9fc1084fcd4007f277703c77c81fc57865b945 (patch) | |
tree | 4cf0b873b15b377e88b9b9dbbf5eaed7ac70c82a | |
parent | 1e46745847fde438232ff4d6455fff4afa485067 (diff) | |
download | dokuwiki-8b9fc1084fcd4007f277703c77c81fc57865b945.tar.gz dokuwiki-8b9fc1084fcd4007f277703c77c81fc57865b945.zip |
skip buggy rector rule
see rectorphp/rector#8916
-rw-r--r-- | _test/rector.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/_test/rector.php b/_test/rector.php index b3d76e691..7e1c08149 100644 --- a/_test/rector.php +++ b/_test/rector.php @@ -40,6 +40,7 @@ use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector; +use Rector\DeadCode\Rector\If_\ReduceAlwaysFalseIfOrRector; return static function (RectorConfig $rectorConfig): void { // FIXME we may want to autoload these later @@ -131,6 +132,7 @@ return static function (RectorConfig $rectorConfig): void { RemoveUselessReturnTagRector::class, // keep doc blocks ExplicitReturnNullRector::class, // we sometimes return void or string intentionally UseIdenticalOverEqualWithSameTypeRector::class, // probably a good idea, maybe later + ReduceAlwaysFalseIfOrRector::class, // see rectorphp/rector#8916 ]); |