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 7b3a1c378a1..8830bae79d8 100644 --- a/lib/private/EventDispatcher/EventDispatcher.php +++ b/lib/private/EventDispatcher/EventDispatcher.php @@ -72,8 +72,7 @@ class EventDispatcher implements IEventDispatcher { public function dispatch(string $eventName, Event $event): void { - - $this->dispatcher->dispatch($eventName, $event); + $this->dispatcher->dispatch($event, $eventName); } public function dispatchTyped(Event $event): void { |