From 047a8afc81d0cfee9799734ed5e2d32ea6079ddb Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 13 Aug 2024 15:55:12 +0200 Subject: [PATCH] [PhpUnitBridge][Console][VarDumper] Fix handling NO_COLOR env var --- DeprecationErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeprecationErrorHandler.php b/DeprecationErrorHandler.php index c2c0cbb..66a6774 100644 --- a/DeprecationErrorHandler.php +++ b/DeprecationErrorHandler.php @@ -410,7 +410,7 @@ private static function hasColorSupport() } // Follow https://no-color.org/ - if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) { + if ('' !== (($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR'))[0] ?? '')) { return false; }