Skip to content

Commit b910063

Browse files
committed
formatting
1 parent e823d0d commit b910063

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Illuminate/Bus/Queueable.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,12 @@ public function dispatchNextJobInChain()
138138
if (! empty($this->chained)) {
139139
dispatch(tap(unserialize(array_shift($this->chained)), function ($next) {
140140
$next->chained = $this->chained;
141-
$next->chainConnection = $this->chainConnection;
142-
$next->chainQueue = $this->chainQueue;
141+
143142
$next->onConnection($next->connection ?: $this->chainConnection);
144143
$next->onQueue($next->queue ?: $this->chainQueue);
144+
145+
$next->chainConnection = $this->chainConnection;
146+
$next->chainQueue = $this->chainQueue;
145147
}));
146148
}
147149
}

0 commit comments

Comments
 (0)