We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f767a2 commit 1f73ec9Copy full SHA for 1f73ec9
src/Illuminate/Queue/Worker.php
@@ -355,10 +355,11 @@ protected function getNextJob($connection, $queue)
355
356
try {
357
if (isset(static::$popCallbacks[$this->name])) {
358
- return tap(
359
- (static::$popCallbacks[$this->name])($popJobCallback, $queue),
360
- fn ($job) => $this->raiseAfterJobPopEvent($connection->getConnectionName(), $job)
361
- );
+ if (! is_null($job = (static::$popCallbacks[$this->name])($popJobCallback, $queue))) {
+ $this->raiseAfterJobPopEvent($connection->getConnectionName(), $job);
+ }
+
362
+ return $job;
363
}
364
365
foreach (explode(',', $queue) as $index => $queue) {
0 commit comments