Skip to content

Commit

Permalink
Merge branch '5.4' into 6.4
Browse files Browse the repository at this point in the history
* 5.4:
  Replace external FTP server by a local docker instance
  [PhpUnitBridge][Console][VarDumper] Fix handling NO_COLOR env var
  • Loading branch information
nicolas-grekas committed Aug 13, 2024
2 parents 74d6d39 + f96ee2a commit b406d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Output/StreamOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function doWrite(string $message, bool $newline)
protected function hasColorSupport(): bool
{
// Follow https://no-color.org/
if ('' !== ($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR') ?: '')) {
if ('' !== (($_SERVER['NO_COLOR'] ?? getenv('NO_COLOR'))[0] ?? '')) {
return false;
}

Expand Down

0 comments on commit b406d22

Please sign in to comment.