clean up phpstan baselines

This commit is contained in:
Dylan K. Taylor 2020-09-02 15:04:37 +01:00
parent 2ae7ba275b
commit c6e0753c3e
3 changed files with 1 additions and 36 deletions

View File

@ -560,11 +560,6 @@ parameters:
count: 1
path: ../../../src/pocketmine/plugin/PluginManager.php
-
message: "#^Part \\$openResult \\(mixed\\) of encapsed string cannot be cast to string\\.$#"
count: 1
path: ../../../src/pocketmine/resourcepacks/ZippedResourcePack.php
-
message: "#^Parameter \\#2 \\$code of class pocketmine\\\\resourcepacks\\\\ResourcePackException constructor expects int, mixed given\\.$#"
count: 1

View File

@ -756,7 +756,7 @@ parameters:
path: ../../../src/pocketmine/level/format/io/region/McRegion.php
-
message: "#^Only numeric types are allowed in %, int\\|false given on the left side\\.$#"
message: "#^Only numeric types are allowed in %%, int\\|false given on the left side\\.$#"
count: 1
path: ../../../src/pocketmine/level/format/io/region/RegionLoader.php

View File

@ -590,11 +590,6 @@ parameters:
count: 1
path: ../../../src/pocketmine/command/defaults/SetWorldSpawnCommand.php
-
message: "#^Parameter \\#1 \\$name of method pocketmine\\\\Server\\:\\:getPlayer\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: ../../../src/pocketmine/command/defaults/TellCommand.php
-
message: "#^Cannot call method getTime\\(\\) on pocketmine\\\\level\\\\Level\\|null\\.$#"
count: 1
@ -775,11 +770,6 @@ parameters:
count: 1
path: ../../../src/pocketmine/entity/Human.php
-
message: "#^Cannot call method getValue\\(\\) on pocketmine\\\\nbt\\\\tag\\\\NamedTag\\|null\\.$#"
count: 1
path: ../../../src/pocketmine/entity/Living.php
-
message: "#^Parameter \\#1 \\$attribute of method pocketmine\\\\entity\\\\AttributeMap\\:\\:addAttribute\\(\\) expects pocketmine\\\\entity\\\\Attribute, pocketmine\\\\entity\\\\Attribute\\|null given\\.$#"
count: 6
@ -1225,11 +1215,6 @@ parameters:
count: 1
path: ../../../src/pocketmine/level/format/Chunk.php
-
message: "#^Cannot call method getValue\\(\\) on pocketmine\\\\nbt\\\\tag\\\\NamedTag\\|null\\.$#"
count: 1
path: ../../../src/pocketmine/level/format/Chunk.php
-
message: "#^Method pocketmine\\\\level\\\\format\\\\Chunk\\:\\:getSubChunk\\(\\) should return pocketmine\\\\level\\\\format\\\\SubChunkInterface but returns pocketmine\\\\level\\\\format\\\\SubChunkInterface\\|null\\.$#"
count: 1
@ -1645,16 +1630,6 @@ parameters:
count: 1
path: ../../../src/pocketmine/tile/Spawnable.php
-
message: "#^Cannot clone non\\-object variable \\$customBlockDataTag of type pocketmine\\\\nbt\\\\tag\\\\NamedTag\\|null\\.$#"
count: 1
path: ../../../src/pocketmine/tile/Tile.php
-
message: "#^Parameter \\#1 \\$tag of method pocketmine\\\\nbt\\\\tag\\\\CompoundTag\\:\\:setTag\\(\\) expects pocketmine\\\\nbt\\\\tag\\\\NamedTag, pocketmine\\\\nbt\\\\tag\\\\NamedTag\\|null given\\.$#"
count: 1
path: ../../../src/pocketmine/tile/Tile.php
-
message: "#^Cannot call method getBlockAt\\(\\) on pocketmine\\\\level\\\\Level\\|null\\.$#"
count: 1
@ -1710,11 +1685,6 @@ parameters:
count: 1
path: ../../../src/pocketmine/utils/Utils.php
-
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\StupidJsonDecodeTest\\:\\:\\$stupidJsonDecodeFunc \\(Closure\\) does not accept Closure\\|null\\.$#"
count: 1
path: ../../phpunit/network/mcpe/StupidJsonDecodeTest.php
-
message: "#^Cannot call method cancel\\(\\) on pocketmine\\\\scheduler\\\\TaskHandler\\|null\\.$#"
count: 1