diff --git a/Dumper/CliDumper.php b/Dumper/CliDumper.php index e0b17ee..e36cee6 100644 --- a/Dumper/CliDumper.php +++ b/Dumper/CliDumper.php @@ -621,7 +621,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; }