phpstan: force static reflection for COM class

com_dotnet has crap reflection exports and the class name case doesn't match.
This commit is contained in:
Dylan K. Taylor 2020-04-14 01:43:02 +01:00
parent 5f07c5df1c
commit 5c12a95151

View File

@ -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\\.$#"