Skip to content

Commit a2db811

Browse files
committed
fix: add missing ()
1 parent be1f588 commit a2db811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/QueueWork.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ private function handleWork(QueueJob $work, QueueConfig $config, ?int $tries, ?i
192192

193193
CLI::write('The processing of this job was successful', 'green');
194194
} catch (Throwable $err) {
195-
if (isset($job) && ++$work->attempts < $tries ?? $job->getTries()) {
195+
if (isset($job) && ++$work->attempts < ($tries ?? $job->getTries())) {
196196
// Schedule for later
197197
service('queue')->later($work, $retryAfter ?? $job->getRetryAfter());
198198
} else {

0 commit comments

Comments
 (0)