diff --git a/system/src/Hooks.php b/system/src/Hooks.php index a7d6cb3a..8dac8eda 100644 --- a/system/src/Hooks.php +++ b/system/src/Hooks.php @@ -30,12 +30,12 @@ class Hooks return $ret; } - public function triggerFilter($type, &...$args) + public function triggerFilter($type, &$args): void { if(isset(self::$_hooks[$type])) { foreach(self::$_hooks[$type] as $hook) { /** @var Hook $hook */ - $args = $hook->executeFilter(...$args); + $hook->executeFilter($args); } } }