diff --git a/phpstan.neon.dist b/phpstan.neon.dist index fafaf1ed5..27ac2870e 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -32,16 +32,6 @@ parameters: path: src/pocketmine/command/defaults/TeleportCommand.php # comment: "not actually possible, but high cost to fix warning" - - - message: "#^Array \\(array\\\\) does not accept pocketmine\\\\entity\\\\Entity\\.$#" - count: 2 - path: src/pocketmine/entity/Entity.php - - - - message: "#^Invalid array key type pocketmine\\\\entity\\\\Entity\\.$#" - count: 1 - path: src/pocketmine/entity/Entity.php - - message: "#^Method pocketmine\\\\event\\\\entity\\\\EntityDeathEvent\\:\\:getEntity\\(\\) should return pocketmine\\\\entity\\\\Living but returns pocketmine\\\\entity\\\\Entity\\.$#" count: 1 diff --git a/tests/phpstan/configs/phpstan-bugs.neon b/tests/phpstan/configs/phpstan-bugs.neon index d7ad3310e..66206c073 100644 --- a/tests/phpstan/configs/phpstan-bugs.neon +++ b/tests/phpstan/configs/phpstan-bugs.neon @@ -33,12 +33,6 @@ parameters: count: 1 path: ../../../src/pocketmine/block/Liquid.php - - - #$class::NETWORK_ID false positive - message: "#^Strict comparison using \\!\\=\\= between \\-1 and \\-1 will always evaluate to false\\.$#" - count: 1 - path: ../../../src/pocketmine/entity/Entity.php - - message: "#^Call to function assert\\(\\) with false and 'unknown hit type' will always evaluate to false\\.$#" count: 1