diff --git a/Dumper/CliDumper.php b/Dumper/CliDumper.php index 3e86e4ab..359171b3 100644 --- a/Dumper/CliDumper.php +++ b/Dumper/CliDumper.php @@ -606,7 +606,7 @@ private function hasColorSupport($stream): bool } // Follow https://no-color.org/ - if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) { + if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) { return false; }