From 5c12a95151d0c36aa506f4711caf4dc1f1a5c38f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 14 Apr 2020 01:43:02 +0100 Subject: [PATCH] phpstan: force static reflection for COM class com_dotnet has crap reflection exports and the class name case doesn't match. --- phpstan.neon.dist | 2 ++ 1 file changed, 2 insertions(+) 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\\.$#"