Skip to content

Commit

Permalink
fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
imdhemy committed Apr 6, 2024
1 parent 792b5a3 commit 5aae98a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: "composer test"

- name: "Coding Style"
run: "composer cs-fix"
run: "composer cs-check"

- name: "Static code analysis"
run: "composer psalm"
3 changes: 2 additions & 1 deletion src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ protected function configure(): void
public function run(InputInterface $input, OutputInterface $output): int
{
$this->setInput($input);
$this->setOutput(new Output($input, $output));
$output = $output instanceof Output ? $output : new Output($input, $output);
$this->setOutput($output);

return parent::run($input, $output);
}
Expand Down

0 comments on commit 5aae98a

Please sign in to comment.