Skip to content

Commit

Permalink
Fix: NullOutput clear #72 (#89)
Browse files Browse the repository at this point in the history
Fix:  #72
When starting the command schedule:start without -v the output will be NullOutput which doesn't contain the clear function
  • Loading branch information
GayKevin authored Jan 13, 2024
1 parent af749f2 commit 70381ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Command/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$progress->finish();


if(!is_a($this->output, StreamOutput::class))
if(method_exists($sectionProgressbar, 'clear'))
{$sectionProgressbar->clear();}

$io->section('Finished Executions');
Expand Down

0 comments on commit 70381ee

Please sign in to comment.