Skip to content

Commit

Permalink
[Console][PhpUnitBridge][VarDumper] Fix NO_COLOR empty value handling
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Jul 26, 2024
1 parent af8868a commit e0a521e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dumper/CliDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ private function hasColorSupport($stream): bool
}

// Follow https://no-color.org/
if (isset($_SERVER['NO_COLOR']) || false !== getenv('NO_COLOR')) {
if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) {
return false;
}

Expand Down

0 comments on commit e0a521e

Please sign in to comment.