phpstan: run static analysis on tests

This commit is contained in:
Dylan K. Taylor
2020-02-06 13:13:12 +00:00
parent 532dc0fb6f
commit 7885b54824
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,3 @@
parameters:
ignoreErrors:
- "#^Method ReflectionMethod\\:\\:getClosure\\(\\) invoked with 0 parameters, 1 required\\.$#"

View File

@ -0,0 +1,6 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\$class of static method pocketmine\\\\level\\\\format\\\\io\\\\LevelProviderManager\\:\\:addProvider\\(\\) expects class\\-string\\<pocketmine\\\\level\\\\format\\\\io\\\\LevelProvider\\>, string given\\.$#"
count: 2
path: ../../phpunit/level/format/io/LevelProviderManagerTest.php