From 1c6d3cd580f0dc0e4f48cf230e448848ef36d2d7 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 12 Dec 2019 15:25:15 +0000 Subject: [PATCH] master: green on phpstan level 4 --- tests/phpstan/configs/phpstan-bugs.neon | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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