mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-10 07:59:21 +02:00
Update Hooks.php
This commit is contained in:
parent
9b75011224
commit
620a47da72
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user