Clean PHPStan baselines

This commit is contained in:
Dylan K. Taylor 2021-05-05 14:51:39 +01:00
parent 652de2632a
commit 73420819f6
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
4 changed files with 2 additions and 57 deletions

View File

@ -30,11 +30,6 @@ parameters:
count: 1
path: ../../../src/Server.php
-
message: "#^pocketmine\\\\block\\\\inventory\\\\DoubleChestInventory\\:\\:__construct\\(\\) does not call parent constructor from pocketmine\\\\block\\\\inventory\\\\ChestInventory\\.$#"
count: 1
path: ../../../src/block/inventory/DoubleChestInventory.php
-
message: "#^Property pocketmine\\\\event\\\\entity\\\\EntityShootBowEvent\\:\\:\\$projectile \\(pocketmine\\\\entity\\\\projectile\\\\Projectile\\) does not accept pocketmine\\\\entity\\\\Entity\\.$#"
count: 1

View File

@ -80,11 +80,6 @@ parameters:
count: 1
path: ../../../src/player/Player.php
-
message: "#^Property pocketmine\\\\player\\\\Player\\:\\:\\$perm \\(pocketmine\\\\permission\\\\PermissibleBase\\) does not accept null\\.$#"
count: 1
path: ../../../src/player/Player.php
-
message: "#^Property pocketmine\\\\world\\\\World\\:\\:\\$provider \\(pocketmine\\\\world\\\\format\\\\io\\\\WritableWorldProvider\\) does not accept null\\.$#"
count: 1

View File

@ -1,13 +1,8 @@
parameters:
ignoreErrors:
-
message: "#^Strict comparison using \\!\\=\\= between 5 and 5 will always evaluate to false\\.$#"
count: 1
path: ../../../src/block/Vine.php
-
message: "#^Call to function is_resource\\(\\) with resource will always evaluate to true\\.$#"
count: 3
count: 2
path: ../../../src/command/CommandReader.php
-

View File

@ -1,18 +1,8 @@
parameters:
ignoreErrors:
-
message: "#^Instanceof between pocketmine\\\\event\\\\RegisteredListener and pocketmine\\\\event\\\\RegisteredListener will always evaluate to true\\.$#"
count: 1
path: ../../../src/event/HandlerList.php
-
message: "#^Call to function is_string\\(\\) with string will always evaluate to true\\.$#"
count: 1
path: ../../../src/item/Item.php
-
message: "#^Casting to int something that's already int\\.$#"
count: 3
count: 2
path: ../../../src/item/Item.php
-
@ -25,33 +15,3 @@ parameters:
count: 1
path: ../../../src/plugin/PluginBase.php
-
message: "#^Call to function is_subclass_of\\(\\) with class\\-string\\<TEvent of pocketmine\\\\event\\\\Event\\> and 'pocketmine\\\\\\\\event\\\\\\\\Event' will always evaluate to true\\.$#"
count: 1
path: ../../../src/plugin/PluginManager.php
-
message: "#^If condition is always true\\.$#"
count: 2
path: ../../../src/thread/ThreadManager.php
-
message: "#^Instanceof between pocketmine\\\\thread\\\\Worker and pocketmine\\\\thread\\\\Worker will always evaluate to true\\.$#"
count: 2
path: ../../../src/thread/ThreadManager.php
-
message: "#^Call to function is_object\\(\\) with \\*NEVER\\* will always evaluate to true\\.$#"
count: 1
path: ../../../src/world/World.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: ../../../src/world/World.php
-
message: "#^Instanceof between pocketmine\\\\math\\\\Vector3 and pocketmine\\\\math\\\\Vector3 will always evaluate to true\\.$#"
count: 1
path: ../../../src/world/World.php