From 89ebd2b88049d264cfa94543520f3af6e303a071 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 30 Jan 2020 22:30:04 +0000 Subject: [PATCH] remove some dead ignoreErrors --- phpstan.neon.dist | 10 ---------- tests/phpstan/configs/phpstan-bugs.neon | 6 ------ 2 files changed, 16 deletions(-) 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