mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
Update Hooks.php
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user