Skip to content

Commit 5051452

Browse files
[PhpUnitBridge][Console][VarDumper] Fix handling NO_COLOR env var
1 parent 2530d7d commit 5051452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dumper/CliDumper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ private function hasColorSupport($stream): bool
606606
}
607607

608608
// Follow https://no-color.org/
609-
if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) {
609+
if ('' !== (($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR'))[0] ?? '')) {
610610
return false;
611611
}
612612

0 commit comments

Comments
 (0)