Skip to content

Commit

Permalink
Make dry-run command compatible with symfony/console 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda committed May 22, 2021
1 parent 76ed781 commit fbeaef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Command/DryRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function execute(InputInterface $input, OutputInterface $output)

$dispatcher = new EventDispatcher();
$dispatcher->addSubscriber(new ConsolePrinter([
'colors' => !$input->getOption('no-ansi'),
'colors' => (!$input->hasParameterOption('--no-ansi') xor $input->hasParameterOption('ansi')),
'steps' => true,
'verbosity' => OutputInterface::VERBOSITY_VERBOSE,
]));
Expand Down

0 comments on commit fbeaef5

Please sign in to comment.