Skip to content

Commit 047a8af

Browse files
[PhpUnitBridge][Console][VarDumper] Fix handling NO_COLOR env var
1 parent 49b7764 commit 047a8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DeprecationErrorHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ private static function hasColorSupport()
410410
}
411411

412412
// Follow https://no-color.org/
413-
if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) {
413+
if ('' !== (($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR'))[0] ?? '')) {
414414
return false;
415415
}
416416

0 commit comments

Comments
 (0)