Update Hooks.php

This commit is contained in:
slawkens 2025-05-08 19:55:31 +02:00
parent 9b75011224
commit 620a47da72

View File

@ -30,12 +30,12 @@ class Hooks
return $ret; return $ret;
} }
public function triggerFilter($type, &...$args) public function triggerFilter($type, &$args): void
{ {
if(isset(self::$_hooks[$type])) { if(isset(self::$_hooks[$type])) {
foreach(self::$_hooks[$type] as $hook) { foreach(self::$_hooks[$type] as $hook) {
/** @var Hook $hook */ /** @var Hook $hook */
$args = $hook->executeFilter(...$args); $hook->executeFilter($args);
} }
} }
} }