mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
phpstan: run static analysis on tests
This commit is contained in:
3
tests/phpstan/configs/php-bugs.neon
Normal file
3
tests/phpstan/configs/php-bugs.neon
Normal file
@ -0,0 +1,3 @@
|
||||
parameters:
|
||||
ignoreErrors:
|
||||
- "#^Method ReflectionMethod\\:\\:getClosure\\(\\) invoked with 0 parameters, 1 required\\.$#"
|
6
tests/phpstan/configs/phpunit-wiring-tests.neon
Normal file
6
tests/phpstan/configs/phpunit-wiring-tests.neon
Normal 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
|
Reference in New Issue
Block a user