mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-23 00:55:57 +00:00
PluginManager: add class-string phpstan param to registerEvent()
This commit is contained in:
parent
3edbea8545
commit
681dd469a2
@ -733,6 +733,7 @@ class PluginManager{
|
||||
|
||||
/**
|
||||
* @param string $event Class name that extends Event
|
||||
* @phpstan-param class-string<Event> $event
|
||||
*
|
||||
* @throws PluginException
|
||||
*/
|
||||
|
@ -80,3 +80,8 @@ parameters:
|
||||
message: "#^Call to function is_array\\(\\) with array\\<string, mixed\\> will always evaluate to true\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/pocketmine/plugin/PluginManager.php
|
||||
|
||||
-
|
||||
message: "#^Call to function is_subclass_of\\(\\) with class\\-string\\<pocketmine\\\\event\\\\Event\\> and 'pocketmine\\\\\\\\event…' will always evaluate to true\\.$#"
|
||||
count: 1
|
||||
path: ../../../src/pocketmine/plugin/PluginManager.php
|
||||
|
Loading…
x
Reference in New Issue
Block a user