Skip to content

Commit

Permalink
Fix #53071 (#53072)
Browse files Browse the repository at this point in the history
  • Loading branch information
it-can authored Oct 8, 2024
1 parent f89575c commit 782bee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Queue/Console/WorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function handle()
// connection being run for the queue operation currently being executed.
$queue = $this->getQueue($connection);

if (! $this->option('json') && Terminal::hasSttyAvailable()) {
if (! $this->hasOption('json') && Terminal::hasSttyAvailable()) {
$this->components->info(
sprintf('Processing jobs from the [%s] %s.', $queue, str('queue')->plural(explode(',', $queue)))
);
Expand Down Expand Up @@ -201,7 +201,7 @@ protected function listenForEvents()
*/
protected function writeOutput(Job $job, $status, Throwable $exception = null)
{
$this->option('json')
$this->hasOption('json')
? $this->writeOutputAsJson($job, $status, $exception)
: $this->writeOutputForCli($job, $status);
}
Expand Down

0 comments on commit 782bee0

Please sign in to comment.