mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
phpstan: properly fixing FPs on constant comparisons
This commit is contained in:
parent
dadc5c1b87
commit
3e23a568ca
@ -1,5 +1,4 @@
|
|||||||
includes:
|
includes:
|
||||||
- tests/phpstan/configs/debug-const-checks.neon
|
|
||||||
- tests/phpstan/configs/gc-hacks.neon
|
- tests/phpstan/configs/gc-hacks.neon
|
||||||
- tests/phpstan/configs/optional-com-dotnet.neon
|
- tests/phpstan/configs/optional-com-dotnet.neon
|
||||||
- tests/phpstan/configs/optional-leveldb.neon
|
- tests/phpstan/configs/optional-leveldb.neon
|
||||||
@ -14,6 +13,9 @@ parameters:
|
|||||||
- src/pocketmine/PocketMine.php
|
- src/pocketmine/PocketMine.php
|
||||||
paths:
|
paths:
|
||||||
- src
|
- src
|
||||||
|
dynamicConstantNames:
|
||||||
|
- pocketmine\IS_DEVELOPMENT_BUILD
|
||||||
|
- pocketmine\DEBUG
|
||||||
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
-
|
-
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user