phpstan: properly fixing FPs on constant comparisons

This commit is contained in:
Dylan K. Taylor
2019-12-29 14:25:44 +00:00
parent dadc5c1b87
commit 3e23a568ca
2 changed files with 3 additions and 22 deletions

View File

@ -1,21 +0,0 @@
parameters:
ignoreErrors:
-
message: "#^If condition is always true\\.$#"
count: 1
path: ../../../src/pocketmine/Server.php
-
message: "#^Ternary operator condition is always true\\.$#"
count: 1
path: ../../../src/pocketmine/Server.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: ../../../src/pocketmine/updater/AutoUpdater.php
-
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: ../../../src/pocketmine/updater/AutoUpdater.php