Skip to content

Commit cef6239

Browse files
[Console][PhpUnitBridge][VarDumper] Fix NO_COLOR empty value handling
1 parent 6473d44 commit cef6239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Output/StreamOutput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function doWrite(string $message, bool $newline)
9191
protected function hasColorSupport()
9292
{
9393
// Follow https://no-color.org/
94-
if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) {
94+
if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) {
9595
return false;
9696
}
9797

0 commit comments

Comments
 (0)