added some phpstan-specific generic type annotations

This commit is contained in:
Dylan K. Taylor
2020-01-13 15:05:02 +00:00
parent acaa34785f
commit 0e1cea043a
11 changed files with 61 additions and 16 deletions

View File

@ -33,11 +33,6 @@ parameters:
count: 1
path: ../../../src/block/Liquid.php
-
message: "#^Cannot access an offset on Ds\\\\Deque&iterable\\<pocketmine\\\\block\\\\utils\\\\BannerPattern\\>\\.$#"
count: 1
path: ../../../src/block/tile/Banner.php
-
message: "#^Call to function assert\\(\\) with false and 'unknown hit type' will always evaluate to false\\.$#"
count: 1
@ -54,11 +49,6 @@ parameters:
count: 1
path: ../../../src/item/ItemFactory.php
-
message: "#^Cannot access offset int on Ds\\\\Deque&iterable\\<pocketmine\\\\item\\\\WritableBookPage\\>\\.$#"
count: 2
path: ../../../src/item/WritableBookBase.php
-
#object to array cast analysis bug
message: "#^Call to function is_object\\(\\) with int will always evaluate to false\\.$#"