diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 28b369554..631a1f539 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -2,7 +2,9 @@ includes: - tests/phpstan/configs/com-dotnet-magic.neon - tests/phpstan/configs/custom-leveldb.neon - tests/phpstan/configs/gc-hacks.neon + - tests/phpstan/configs/php-bugs.neon - tests/phpstan/configs/phpstan-bugs.neon + - tests/phpstan/configs/phpunit-wiring-tests.neon - tests/phpstan/configs/pthreads-bugs.neon - tests/phpstan/configs/runtime-type-checks.neon @@ -13,10 +15,12 @@ parameters: - src/pocketmine/PocketMine.php - build/make-release.php - build/server-phar.php + - vendor/irstea/phpunit-shim/phpunit paths: - src - build/make-release.php - build/server-phar.php + - tests/phpunit dynamicConstantNames: - pocketmine\IS_DEVELOPMENT_BUILD - pocketmine\DEBUG diff --git a/tests/phpstan/configs/php-bugs.neon b/tests/phpstan/configs/php-bugs.neon new file mode 100644 index 000000000..0f82334e1 --- /dev/null +++ b/tests/phpstan/configs/php-bugs.neon @@ -0,0 +1,3 @@ +parameters: + ignoreErrors: + - "#^Method ReflectionMethod\\:\\:getClosure\\(\\) invoked with 0 parameters, 1 required\\.$#" diff --git a/tests/phpstan/configs/phpunit-wiring-tests.neon b/tests/phpstan/configs/phpunit-wiring-tests.neon new file mode 100644 index 000000000..11f82d563 --- /dev/null +++ b/tests/phpstan/configs/phpunit-wiring-tests.neon @@ -0,0 +1,6 @@ +parameters: + ignoreErrors: + - + message: "#^Parameter \\#1 \\$class of static method pocketmine\\\\level\\\\format\\\\io\\\\LevelProviderManager\\:\\:addProvider\\(\\) expects class\\-string\\, string given\\.$#" + count: 2 + path: ../../phpunit/level/format/io/LevelProviderManagerTest.php