phpstan: 0.12.3 fixes for master

This commit is contained in:
Dylan K. Taylor 2019-12-29 17:55:03 +00:00
parent cccade9ade
commit 9204b11948

View File

@ -53,6 +53,11 @@ parameters:
count: 1
path: ../../../src/item/ItemFactory.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: ../../../src/item/ItemFactory.php
-
message: "#^Cannot access offset int on Ds\\\\Deque&iterable\\<pocketmine\\\\item\\\\WritableBookPage\\>\\.$#"
count: 2
@ -69,29 +74,7 @@ parameters:
count: 1
path: ../../../src/network/mcpe/protocol/types/entity/EntityMetadataCollection.php
-
message: "#^Instanceof between int and PharFileInfo will always evaluate to false\\.$#"
count: 1
path: ../../../src/plugin/PharPluginLoader.php
-
message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#"
count: 1
path: ../../../src/utils/Config.php
-
#ReflectionFunction::getClosureThis() should be nullable
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: ../../../src/utils/Utils.php
-
#ReflectionFunction::getClosureScopeClass() should be nullable
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: ../../../src/utils/Utils.php
-
message: "#^Strict comparison using \\=\\=\\= between int\\<min, 3\\> and 4 will always evaluate to false\\.$#"
count: 1
path: ../../../src/world/World.php