mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
it doesn't serve any practical purpose to keep these separated, particularly since it's getting so difficult to figure out which errors are coming from which levels (since we always use 9, it doesn't really make any difference).
53 lines
1.9 KiB
Plaintext
53 lines
1.9 KiB
Plaintext
includes:
|
|
- tests/phpstan/configs/actual-problems.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
|
|
- tests/phpstan/configs/spl-fixed-array-sucks.neon
|
|
- vendor/phpstan/phpstan-phpunit/extension.neon
|
|
- vendor/phpstan/phpstan-phpunit/rules.neon
|
|
- vendor/phpstan/phpstan-strict-rules/rules.neon
|
|
|
|
parameters:
|
|
level: 9
|
|
checkMissingCallableSignature: true
|
|
treatPhpDocTypesAsCertain: false
|
|
bootstrapFiles:
|
|
- tests/phpstan/bootstrap.php
|
|
scanDirectories:
|
|
- build
|
|
- tests/plugins/TesterPlugin
|
|
scanFiles:
|
|
- src/pocketmine/PocketMine.php
|
|
paths:
|
|
- build
|
|
- src
|
|
- tests/phpunit
|
|
- tests/plugins/TesterPlugin
|
|
excludePaths:
|
|
analyseAndScan:
|
|
- build/php
|
|
- build/preprocessor
|
|
analyse:
|
|
- src/pocketmine/block/StoneSlab.php #overrides STONE constant
|
|
- src/pocketmine/item/Potion.php #overrides WATER constant
|
|
dynamicConstantNames:
|
|
- pocketmine\DEBUG
|
|
- pocketmine\IS_DEVELOPMENT_BUILD
|
|
stubFiles:
|
|
- tests/phpstan/stubs/chunkutils.stub
|
|
- tests/phpstan/stubs/leveldb.stub
|
|
- tests/phpstan/stubs/pthreads.stub
|
|
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
|
staticReflectionClassNamePatterns:
|
|
- "#^COM$#"
|
|
typeAliases:
|
|
#variadics don't work for this - mixed probably shouldn't work either, but for now it does
|
|
#what we actually need is something that accepts an infinite number of parameters, but in the absence of that,
|
|
#we'll just fill it with 10 - it's very unlikely to encounter a callable with 10 parameters anyway.
|
|
anyCallable: 'callable(never, never, never, never, never, never, never, never, never, never) : mixed'
|
|
anyClosure: '\Closure(never, never, never, never, never, never, never, never, never, never) : mixed'
|