diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 8bfdcfc29..5598dc316 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -31,6 +31,8 @@ parameters: - tests/phpstan/stubs/pthreads.stub - tests/phpstan/stubs/chunkutils.stub reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings + staticReflectionClassNamePatterns: + - "#^COM$#" ignoreErrors: - message: "#^Instanceof between pocketmine\\\\plugin\\\\PluginManager and pocketmine\\\\plugin\\\\PluginManager will always evaluate to true\\.$#"