mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
added some phpstan-specific generic type annotations
This commit is contained in:
9
tests/phpstan/configs/ds-bugs.neon
Normal file
9
tests/phpstan/configs/ds-bugs.neon
Normal file
@ -0,0 +1,9 @@
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
-
|
||||
message: "#^Cannot (access an|assign new) offset (on|to) Ds\\\\Deque\\<.+\\>\\.$#"
|
||||
path: ../../../src
|
||||
|
||||
-
|
||||
message: "#^Cannot (access|assign) offset (int|-?\\d+) (on|to) Ds\\\\Deque\\<.+\\>\\.$#"
|
||||
path: ../../../src
|
@ -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\\.$#"
|
||||
|
Reference in New Issue
Block a user