Skip to content

Commit

Permalink
Merge pull request #6216 from Codeception/4.1-dry-run-compatibility-w…
Browse files Browse the repository at this point in the history
…ith-symfony-5.3

Make dry-run command compatible with symfony/console 5.3
  • Loading branch information
Naktibalda committed May 22, 2021
2 parents 76ed781 + fbeaef5 commit 0882485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Command/DryRun.php
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 0882485

Please sign in to comment.