Skip to content

Commit

Permalink
Merge branch '6.4' into 7.1
Browse files Browse the repository at this point in the history
* 6.4:
  Replace external FTP server by a local docker instance
  [PhpUnitBridge][Console][VarDumper] Fix handling NO_COLOR env var
  fix test
  [Validator] Add test for `D` regex modifier in `TimeValidator`
  • Loading branch information
nicolas-grekas committed Aug 13, 2024
2 parents e124ab6 + b406d22 commit 6e710b5
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 @@ -90,7 +90,7 @@ protected function doWrite(string $message, bool $newline): void
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 6e710b5

Please sign in to comment.