From fbeaef5c5cd903e1d6ae30d91f3f4f64794c2b0d Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Sat, 22 May 2021 21:55:14 +0300 Subject: [PATCH] Make dry-run command compatible with symfony/console 5.3 --- src/Codeception/Command/DryRun.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Codeception/Command/DryRun.php b/src/Codeception/Command/DryRun.php index 21fa43659e..ec7e977021 100644 --- a/src/Codeception/Command/DryRun.php +++ b/src/Codeception/Command/DryRun.php @@ -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, ]));