diff --git a/tests/phpstan/configs/phpstan-bugs.neon b/tests/phpstan/configs/phpstan-bugs.neon index c7bb5a26d..80e555e31 100644 --- a/tests/phpstan/configs/phpstan-bugs.neon +++ b/tests/phpstan/configs/phpstan-bugs.neon @@ -47,11 +47,28 @@ parameters: count: 1 path: ../../../src/entity/projectile/Projectile.php + - + #dynamic Entity class access of ::ID constant + message: "#^Strict comparison using \\!\\=\\= between \\-1 and \\-1 will always evaluate to false\\.$#" + count: 1 + path: ../../../src/item/ItemFactory.php + - message: "#^Cannot access offset int on Ds\\\\Deque&iterable\\\\.$#" count: 2 path: ../../../src/item/WritableBookBase.php + - + #object to array cast analysis bug + message: "#^Call to function is_object\\(\\) with int will always evaluate to false\\.$#" + count: 1 + path: ../../../src/network/mcpe/protocol/DataPacket.php + + - + message: "#^If condition is always false\\.$#" + count: 1 + path: ../../../src/network/mcpe/protocol/types/entity/EntityMetadataCollection.php + - message: "#^Instanceof between int and PharFileInfo will always evaluate to false\\.$#" count: 1