diff --git a/phpstan.neon.dist b/phpstan.neon.dist index c4326c134..a1e2abbb7 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -23,6 +23,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{}