- Mostly bug fixes done on this code push
This commit is contained in:
1 parent
7de0ecb028
commit
83f673b37f
8 files changed
+26
-5
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ trait EventTrait
|
||||
return array_filter($this->eventList, fn($ev) => $ev instanceof $type);
|
||||
}
|
||||
|
||||
public function eventExecute(string $type, ...$arguments) : void
|
||||
public function eventExecute(string $type, &...$arguments) : void
|
||||
{
|
||||
foreach($this->eventFromType($type) as $event) {
|
||||
call_user_func_array([ $event, 'execute'], $arguments);
|
||||
|
||||
Reference in new issue
Block a user