mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 18:36:40 +00:00
phpstan: 0.12.3 fixes for master
This commit is contained in:
parent
cccade9ade
commit
9204b11948
@ -53,6 +53,11 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/item/ItemFactory.php
|
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\\>\\.$#"
|
message: "#^Cannot access offset int on Ds\\\\Deque&iterable\\<pocketmine\\\\item\\\\WritableBookPage\\>\\.$#"
|
||||||
count: 2
|
count: 2
|
||||||
@ -69,29 +74,7 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/network/mcpe/protocol/types/entity/EntityMetadataCollection.php
|
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\\.$#"
|
message: "#^Strict comparison using \\=\\=\\= between int\\<1, max\\> and 0 will always evaluate to false\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/utils/Config.php
|
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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user