From 620a47da72dbf5e9c891280005f1a5f6c20cc889 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 8 May 2025 19:55:31 +0200 Subject: [PATCH] Update Hooks.php --- system/src/Hooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } }