diff --git a/Output/StreamOutput.php b/Output/StreamOutput.php index 84a7fa734..b46f4d2ca 100644 --- a/Output/StreamOutput.php +++ b/Output/StreamOutput.php @@ -90,7 +90,7 @@ protected function doWrite(string $message, bool $newline): void protected function hasColorSupport(): bool { // Follow https://no-color.org/ - if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) { + if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) { return false; }