diff options
| author | wn_ <invalid@email.com> | 2024-11-12 03:15:53 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-11-12 03:15:53 +0000 |
| commit | a784305cc764a7e039ad87074f541db68a653a5a (patch) | |
| tree | 508c428e11d5559c3c25ad01ffe1ba474f7da270 /classes/PluginHost.php | |
| parent | e4c57769e005e75b80ec0fa206fed8ff69e58162 (diff) | |
Address PHPStan findings as of 2.0.1
Diffstat (limited to 'classes/PluginHost.php')
| -rw-r--r-- | classes/PluginHost.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/PluginHost.php b/classes/PluginHost.php index 23ff03661..88eb5d2a4 100644 --- a/classes/PluginHost.php +++ b/classes/PluginHost.php @@ -386,6 +386,7 @@ class PluginHost { * @param PluginHost::HOOK_* $type */ function del_hook(string $type, Plugin $sender): void { + /** @phpstan-ignore function.alreadyNarrowedType ($type might not exist) */ if (is_array($this->hooks[$type])) { foreach (array_keys($this->hooks[$type]) as $prio) { $key = array_search($sender, $this->hooks[$type][$prio]); @@ -589,7 +590,7 @@ class PluginHost { } } - /** @return array<string, array{'description': string, 'suffix': string, 'arghelp': string, 'class': Plugin}>> command type -> details array */ + /** @return array<string, array{'description': string, 'suffix': string, 'arghelp': string, 'class': Plugin}> command type -> details array */ function get_commands() { return $this->commands; } |