From 4e0bc6c98e29f6e564879a0b771414a725cc24b6 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 19 Apr 2021 16:18:22 +0100 Subject: [PATCH] Scrub PHPStan baselines --- .../check-explicit-mixed-baseline.neon | 25 ------------------- tests/phpstan/configs/l7-baseline.neon | 5 ---- tests/phpstan/configs/l8-baseline.neon | 10 -------- 3 files changed, 40 deletions(-) diff --git a/tests/phpstan/configs/check-explicit-mixed-baseline.neon b/tests/phpstan/configs/check-explicit-mixed-baseline.neon index 39cdc5802..0fe171efd 100644 --- a/tests/phpstan/configs/check-explicit-mixed-baseline.neon +++ b/tests/phpstan/configs/check-explicit-mixed-baseline.neon @@ -295,26 +295,6 @@ parameters: count: 1 path: ../../../src/world/World.php - - - message: "#^Cannot cast mixed to string\\.$#" - count: 1 - path: ../../../src/world/format/io/data/BedrockWorldData.php - - - - message: "#^Parameter \\#2 \\$value of method pocketmine\\\\nbt\\\\tag\\\\CompoundTag\\:\\:setString\\(\\) expects string, mixed given\\.$#" - count: 1 - path: ../../../src/world/format/io/data/BedrockWorldData.php - - - - message: "#^Cannot cast mixed to string\\.$#" - count: 1 - path: ../../../src/world/format/io/data/JavaWorldData.php - - - - message: "#^Parameter \\#2 \\$value of method pocketmine\\\\nbt\\\\tag\\\\CompoundTag\\:\\:setString\\(\\) expects string, mixed given\\.$#" - count: 1 - path: ../../../src/world/format/io/data/JavaWorldData.php - - message: "#^Cannot access offset 1 on mixed\\.$#" count: 2 @@ -325,11 +305,6 @@ parameters: count: 2 path: ../../../src/world/format/io/region/RegionWorldProvider.php - - - message: "#^Property pocketmine\\\\world\\\\generator\\\\Flat\\:\\:\\$preset \\(string\\) does not accept mixed\\.$#" - count: 1 - path: ../../../src/world/generator/Flat.php - - message: "#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\\.$#" count: 1 diff --git a/tests/phpstan/configs/l7-baseline.neon b/tests/phpstan/configs/l7-baseline.neon index e54fab02b..496df8311 100644 --- a/tests/phpstan/configs/l7-baseline.neon +++ b/tests/phpstan/configs/l7-baseline.neon @@ -940,11 +940,6 @@ parameters: count: 2 path: ../../../src/world/format/Chunk.php - - - message: "#^Parameter \\#1 \\$className of static method pocketmine\\\\utils\\\\Utils\\:\\:testValidInstance\\(\\) expects class\\-string, string given\\.$#" - count: 1 - path: ../../../src/world/format/io/FormatConverter.php - - message: "#^Only numeric types are allowed in %%, int\\|false given on the left side\\.$#" count: 1 diff --git a/tests/phpstan/configs/l8-baseline.neon b/tests/phpstan/configs/l8-baseline.neon index 2ee289468..b68a7df7a 100644 --- a/tests/phpstan/configs/l8-baseline.neon +++ b/tests/phpstan/configs/l8-baseline.neon @@ -250,11 +250,6 @@ parameters: count: 1 path: ../../../src/scheduler/AsyncTask.php - - - message: "#^Cannot call method cancel\\(\\) on pocketmine\\\\scheduler\\\\TaskHandler\\|null\\.$#" - count: 1 - path: ../../../src/scheduler/CancellableClosureTask.php - - message: "#^Cannot call method getAsyncWorkerId\\(\\) on pocketmine\\\\scheduler\\\\AsyncWorker\\|null\\.$#" count: 1 @@ -510,8 +505,3 @@ parameters: count: 1 path: ../../phpunit/event/HandlerListManagerTest.php - - - message: "#^Cannot call method cancel\\(\\) on pocketmine\\\\scheduler\\\\TaskHandler\\|null\\.$#" - count: 1 - path: ../../plugins/TesterPlugin/src/pmmp/TesterPlugin/CheckTestCompletionTask.php -