mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-30 23:11:06 +00:00
phpstan: green on level 6, minus iterable types
iterable types are a big pain in the ass because of pthreads' awful architecture, and there's nothing I can do about that without BC-breaking changes to pthreads.
This commit is contained in:
parent
e5d62ec901
commit
5a97c378fc
@ -2,13 +2,12 @@ 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/gradual-level6.neon
|
|
||||||
- tests/phpstan/configs/phpstan-bugs.neon
|
- tests/phpstan/configs/phpstan-bugs.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
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
level: 5
|
level: 6
|
||||||
autoload_files:
|
autoload_files:
|
||||||
- tests/phpstan/bootstrap.php
|
- tests/phpstan/bootstrap.php
|
||||||
- src/pocketmine/PocketMine.php
|
- src/pocketmine/PocketMine.php
|
||||||
@ -20,6 +19,7 @@ parameters:
|
|||||||
- pocketmine\IS_DEVELOPMENT_BUILD
|
- pocketmine\IS_DEVELOPMENT_BUILD
|
||||||
- pocketmine\DEBUG
|
- pocketmine\DEBUG
|
||||||
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
||||||
|
checkMissingIterableValueType: false #TODO: pthreads Threaded base for too many things, fix this later
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
-
|
-
|
||||||
message: "#^Cannot instantiate interface pocketmine\\\\level\\\\format\\\\io\\\\LevelProvider\\.$#"
|
message: "#^Cannot instantiate interface pocketmine\\\\level\\\\format\\\\io\\\\LevelProvider\\.$#"
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
parameters:
|
|
||||||
checkGenericClassInNonGenericObjectType: true
|
|
||||||
#checkMissingIterableValueType: true
|
|
||||||
checkMissingVarTagTypehint: true
|
|
||||||
checkMissingTypehints: true
|
|
||||||
|
|
||||||
rules:
|
|
||||||
- PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule
|
|
||||||
- PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule
|
|
||||||
- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
|
|
||||||
- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule
|
|
||||||
- PHPStan\Rules\Properties\MissingPropertyTypehintRule
|
|
Loading…
x
Reference in New Issue
Block a user