diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/EventDispatcher/EventDispatcher.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/EventDispatcher/EventDispatcher.php b/lib/private/EventDispatcher/EventDispatcher.php index 8db2f3101be..bbf6ae2b368 100644 --- a/lib/private/EventDispatcher/EventDispatcher.php +++ b/lib/private/EventDispatcher/EventDispatcher.php @@ -71,8 +71,7 @@ class EventDispatcher implements IEventDispatcher { public function dispatch(string $eventName, Event $event): void { - - $this->dispatcher->dispatch($eventName, $event); + $this->dispatcher->dispatch($event, $eventName); } /** |