diff --git a/Dumper/CliDumper.php b/Dumper/CliDumper.php index ed1c356..df17f2f 100644 --- a/Dumper/CliDumper.php +++ b/Dumper/CliDumper.php @@ -587,7 +587,7 @@ private function hasColorSupport(mixed $stream): bool } // Follow https://no-color.org/ - if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) { + if ('' !== (($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR'))[0] ?? '')) { return false; }