Skip to content

Commit 782bee0

Browse files
authored
Fix #53071 (#53072)
1 parent f89575c commit 782bee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Queue/Console/WorkCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function handle()
115115
// connection being run for the queue operation currently being executed.
116116
$queue = $this->getQueue($connection);
117117

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

0 commit comments

Comments
 (0)