summaryrefslogtreecommitdiff
path: root/classes/PluginHost.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/PluginHost.php')
-rw-r--r--classes/PluginHost.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/PluginHost.php b/classes/PluginHost.php
index 88eb5d2a4..b54e48d4f 100644
--- a/classes/PluginHost.php
+++ b/classes/PluginHost.php
@@ -386,8 +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])) {
+ if (array_key_exists($type, $this->hooks)) {
foreach (array_keys($this->hooks[$type]) as $prio) {
$key = array_search($sender, $this->hooks[$type][$prio]);