mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
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:
parent
89ebd2b880
commit
004f7ef82e
@ -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:
|
||||
|
6
tests/phpstan/stubs/pthreads.stub
Normal file
6
tests/phpstan/stubs/pthreads.stub
Normal file
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @implements \Traversable<array-key, mixed>
|
||||
*/
|
||||
class Threaded implements \Traversable{}
|
Loading…
x
Reference in New Issue
Block a user