Skip to content

Commit

Permalink
[9.x] Fix BC issues introduced in #44080 (#44137)
Browse files Browse the repository at this point in the history
* extract via connection

* extract via queue

* fix call
  • Loading branch information
gocanto authored Sep 15, 2022
1 parent bff5039 commit 71fbb30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Events/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -579,11 +579,11 @@ protected function queueHandler($class, $method, $arguments)
[$listener, $job] = $this->createListenerAndJob($class, $method, $arguments);

$connection = $this->resolveQueue()->connection(method_exists($listener, 'viaConnection')
? $listener->viaConnection($arguments[0])
? (isset($arguments[0]) ? $listener->viaConnection($arguments[0]) : $listener->viaConnection())
: $listener->connection ?? null);

$queue = method_exists($listener, 'viaQueue')
? $listener->viaQueue($arguments[0])
? (isset($arguments[0]) ? $listener->viaQueue($arguments[0]) : $listener->viaQueue())
: $listener->queue ?? null;

isset($listener->delay)
Expand Down

0 comments on commit 71fbb30

Please sign in to comment.