phpstan: stub out the iterable bullshit with pthreads

this isn't a perfect fix, but it's better than it whining about all the things.
This commit is contained in:
Dylan K. Taylor 2020-01-30 22:31:15 +00:00
parent 89ebd2b880
commit 004f7ef82e
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,8 @@ parameters:
dynamicConstantNames:
- pocketmine\IS_DEVELOPMENT_BUILD
- pocketmine\DEBUG
stubFiles:
- tests/phpstan/stubs/pthreads.stub
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:

View File

@ -0,0 +1,6 @@
<?php
/**
* @implements \Traversable<array-key, mixed>
*/
class Threaded implements \Traversable{}