diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 27ac2870e..79024bc47 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -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: diff --git a/tests/phpstan/stubs/pthreads.stub b/tests/phpstan/stubs/pthreads.stub new file mode 100644 index 000000000..054c8c372 --- /dev/null +++ b/tests/phpstan/stubs/pthreads.stub @@ -0,0 +1,6 @@ + + */ +class Threaded implements \Traversable{}