Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f96ee2a

Browse files
[PhpUnitBridge][Console][VarDumper] Fix handling NO_COLOR env var
1 parent cef6239 commit f96ee2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Output/StreamOutput.php

Lines changed: 1 addition & 1 deletion
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 ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) {
94+
if ('' !== (($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR'))[0] ?? '')) {
9595
return false;
9696
}
9797

0 commit comments

Comments
 (0)