mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
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:
parent
5f07c5df1c
commit
5c12a95151
@ -31,6 +31,8 @@ parameters:
|
|||||||
- tests/phpstan/stubs/pthreads.stub
|
- tests/phpstan/stubs/pthreads.stub
|
||||||
- tests/phpstan/stubs/chunkutils.stub
|
- tests/phpstan/stubs/chunkutils.stub
|
||||||
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
reportUnmatchedIgnoredErrors: false #no other way to silence platform-specific non-warnings
|
||||||
|
staticReflectionClassNamePatterns:
|
||||||
|
- "#^COM$#"
|
||||||
ignoreErrors:
|
ignoreErrors:
|
||||||
-
|
-
|
||||||
message: "#^Instanceof between pocketmine\\\\plugin\\\\PluginManager and pocketmine\\\\plugin\\\\PluginManager will always evaluate to true\\.$#"
|
message: "#^Instanceof between pocketmine\\\\plugin\\\\PluginManager and pocketmine\\\\plugin\\\\PluginManager will always evaluate to true\\.$#"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user