mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
References like in CI4
This commit is contained in:
@@ -24,7 +24,7 @@ class CI3_Events
|
||||
self::$eventsSorted[$event] = false;
|
||||
}
|
||||
|
||||
public static function trigger($event, &...$args)
|
||||
public static function trigger($event, ...$args)
|
||||
{
|
||||
if (!isset(self::$events[$event]))
|
||||
return;
|
||||
@@ -37,7 +37,7 @@ class CI3_Events
|
||||
}
|
||||
|
||||
foreach (self::$events[$event] as $conf) {
|
||||
call_user_func_array($conf[1], $args);
|
||||
$conf[1](...$args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user