mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 10:26:38 +00:00
phpstan: run static analysis on tests
This commit is contained in:
parent
532dc0fb6f
commit
7885b54824
@ -2,7 +2,9 @@ includes:
|
|||||||
- tests/phpstan/configs/com-dotnet-magic.neon
|
- tests/phpstan/configs/com-dotnet-magic.neon
|
||||||
- tests/phpstan/configs/custom-leveldb.neon
|
- tests/phpstan/configs/custom-leveldb.neon
|
||||||
- tests/phpstan/configs/gc-hacks.neon
|
- tests/phpstan/configs/gc-hacks.neon
|
||||||
|
- tests/phpstan/configs/php-bugs.neon
|
||||||
- tests/phpstan/configs/phpstan-bugs.neon
|
- tests/phpstan/configs/phpstan-bugs.neon
|
||||||
|
- tests/phpstan/configs/phpunit-wiring-tests.neon
|
||||||
- tests/phpstan/configs/pthreads-bugs.neon
|
- tests/phpstan/configs/pthreads-bugs.neon
|
||||||
- tests/phpstan/configs/runtime-type-checks.neon
|
- tests/phpstan/configs/runtime-type-checks.neon
|
||||||
|
|
||||||
@ -13,10 +15,12 @@ parameters:
|
|||||||
- src/pocketmine/PocketMine.php
|
- src/pocketmine/PocketMine.php
|
||||||
- build/make-release.php
|
- build/make-release.php
|
||||||
- build/server-phar.php
|
- build/server-phar.php
|
||||||
|
- vendor/irstea/phpunit-shim/phpunit
|
||||||
paths:
|
paths:
|
||||||
- src
|
- src
|
||||||
- build/make-release.php
|
- build/make-release.php
|
||||||
- build/server-phar.php
|
- build/server-phar.php
|
||||||
|
- tests/phpunit
|
||||||
dynamicConstantNames:
|
dynamicConstantNames:
|
||||||
- pocketmine\IS_DEVELOPMENT_BUILD
|
- pocketmine\IS_DEVELOPMENT_BUILD
|
||||||
- pocketmine\DEBUG
|
- pocketmine\DEBUG
|
||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user