From 1120c12321769c17fdb49f3c7f6dee510a9e1843 Mon Sep 17 00:00:00 2001 From: Michiel Vermeersch Date: Wed, 29 Apr 2026 10:12:35 +0200 Subject: [PATCH] fix(options): forward colors option to PHPUnit, even when it matches the default option value. --- src/Options.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Options.php b/src/Options.php index 63b5d51a..69f4ee67 100644 --- a/src/Options.php +++ b/src/Options.php @@ -191,13 +191,6 @@ public static function fromConsoleInput(InputInterface $input, string $cwd): sel $functional = $options['functional']; unset($options['functional']); - assert(array_key_exists('colors', $options)); - if ($options['colors'] === Configuration::COLOR_DEFAULT) { - unset($options['colors']); - } elseif ($options['colors'] === null) { - $options['colors'] = Configuration::COLOR_AUTO; - } - assert(array_key_exists('coverage-text', $options)); if ($options['coverage-text'] === null) { $options['coverage-text'] = 'php://stdout'; @@ -695,9 +688,8 @@ public static function setInputDefinition(InputDefinition $inputDefinition): voi new InputOption( 'colors', null, - InputOption::VALUE_OPTIONAL, + InputOption::VALUE_REQUIRED, '@see PHPUnit guide, chapter: ' . $chapter = 'Reporting', - Configuration::COLOR_DEFAULT, ), new InputOption( 'no-progress',