Skip to content

Commit

Permalink
fix: add missing ()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Dec 17, 2023
1 parent 2d7ee58 commit 7cafc2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/QueueWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private function handleWork(QueueJob $work, QueueConfig $config, ?int $tries, ?i

CLI::write('The processing of this job was successful', 'green');
} catch (Throwable $err) {
if (isset($job) && ++$work->attempts < $tries ?? $job->getTries()) {
if (isset($job) && ++$work->attempts < ($tries ?? $job->getTries())) {

Check failure on line 195 in src/Commands/QueueWork.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 Static Analysis

Call to an undefined method CodeIgniter\Queue\Interfaces\JobInterface::getTries().

Check failure on line 195 in src/Commands/QueueWork.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 Static Analysis

Call to an undefined method CodeIgniter\Queue\Interfaces\JobInterface::getTries().
// Schedule for later
service('queue')->later($work, $retryAfter ?? $job->getRetryAfter());

Check failure on line 197 in src/Commands/QueueWork.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 Static Analysis

Call to an undefined method CodeIgniter\Queue\Interfaces\JobInterface::getRetryAfter().

Check failure on line 197 in src/Commands/QueueWork.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 Static Analysis

Call to an undefined method CodeIgniter\Queue\Interfaces\JobInterface::getRetryAfter().
} else {
Expand Down

0 comments on commit 7cafc2d

Please sign in to comment.