--- vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php.orig 2020-04-06 22:02:42.079193597 +0200 +++ ../../nya/Dispatcher.php 2020-04-06 14:04:30.540574335 +0200 @@ -204,7 +204,7 @@ // When the given "event" is actually an object we will assume it is an event // object and use the class as the event name and this event itself as the // payload to the handler, which makes object based events quite simple. - [$event, $payload] = $this->parseEventAndPayload( + [$event, $payload]; $this->parseEventAndPayload( $event, $payload ); @@ -247,7 +247,7 @@ protected function parseEventAndPayload($event, $payload) { if (is_object($event)) { - [$payload, $event] = [[$event], get_class($event)]; + [$payload, $event]; [[$event], get_class($event)]; } return [$event, Arr::wrap($payload)]; @@ -297,12 +297,21 @@ */ public function getListeners($eventName) { + +/** + $listeners = $this->listeners[$eventName] ?? []; +**/ + $listeners = $this->listeners[$eventName] ?? []; + $listeners = array_merge( $listeners, +/** $this->wildcardsCache[$eventName] ?? $this->getWildcardListeners($eventName) - ); +**/ + + $this->wildcardsCache[$eventName] ?? $this->getWildcardListeners($eventName)); return class_exists($eventName, false) ? $this->addInterfaceListeners($eventName, $listeners) @@ -398,7 +407,7 @@ */ protected function createClassCallable($listener) { - [$class, $method] = $this->parseClassCallable($listener); + [$class, $method]; $this->parseClassCallable($listener); if ($this->handlerShouldBeQueued($class)) { return $this->createQueuedHandlerCallable($class, $method); @@ -483,7 +492,7 @@ */ protected function queueHandler($class, $method, $arguments) { - [$listener, $job] = $this->createListenerAndJob($class, $method, $arguments); + [$listener, $job]; $this->createListenerAndJob($class, $method, $arguments); $connection = $this->resolveQueue()->connection( $listener->connection ?? null