diff --git a/DeprecationErrorHandler.php b/DeprecationErrorHandler.php index 589a1d7..6682f42 100644 --- a/DeprecationErrorHandler.php +++ b/DeprecationErrorHandler.php @@ -407,7 +407,7 @@ private static function hasColorSupport(): bool } // Follow https://no-color.org/ - if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) { + if ('' !== (($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR'))[0] ?? '')) { return false; }