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