From b2bab6c2fb87298c3d0aca544500ad63f897e930 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 5 Dec 2020 01:32:23 +0000 Subject: [PATCH] clean dead errors out of phpstan l8 baseline --- tests/phpstan/configs/l8-baseline.neon | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tests/phpstan/configs/l8-baseline.neon b/tests/phpstan/configs/l8-baseline.neon index 75b2055b38..f0d3573729 100644 --- a/tests/phpstan/configs/l8-baseline.neon +++ b/tests/phpstan/configs/l8-baseline.neon @@ -75,16 +75,6 @@ parameters: count: 1 path: ../../../src/command/defaults/TimeCommand.php - - - message: "#^Cannot call method addEntity\\(\\) on pocketmine\\\\world\\\\format\\\\Chunk\\|null\\.$#" - count: 1 - path: ../../../src/entity/Entity.php - - - - message: "#^Parameter \\#2 \\$oldContents of method pocketmine\\\\inventory\\\\InventoryListener\\:\\:onContentChange\\(\\) expects array\\, array\\ given\\.$#" - count: 1 - path: ../../../src/inventory/BaseInventory.php - - message: "#^Parameter \\#2 \\$recipe of class pocketmine\\\\event\\\\inventory\\\\CraftItemEvent constructor expects pocketmine\\\\crafting\\\\CraftingRecipe, pocketmine\\\\crafting\\\\CraftingRecipe\\|null given\\.$#" count: 1 @@ -266,12 +256,12 @@ parameters: path: ../../../src/player/Player.php - - message: "#^Cannot call method getEntities\\(\\) on pocketmine\\\\world\\\\format\\\\Chunk\\|null\\.$#" - count: 2 + message: "#^Cannot call method stopUsingChunk\\(\\) on pocketmine\\\\network\\\\mcpe\\\\NetworkSession\\|null\\.$#" + count: 1 path: ../../../src/player/Player.php - - message: "#^Cannot call method stopUsingChunk\\(\\) on pocketmine\\\\network\\\\mcpe\\\\NetworkSession\\|null\\.$#" + message: "#^Cannot call method getEntities\\(\\) on pocketmine\\\\world\\\\format\\\\Chunk\\|null\\.$#" count: 1 path: ../../../src/player/Player.php