Skip to content

Commit e3c88f2

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: fix Redis proxies tests [VarDumper] Fix missing colors initialization in CliDumper [Process] Fix executable finder when the command starts with a dash [Validator] added reviewed Lithuanian and Dutch translations simplify the parser factory creation
2 parents 68d6573 + 526eef8 commit e3c88f2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dumper/CliDumper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,10 @@ protected function supportsColors(): bool
577577
*/
578578
protected function dumpLine(int $depth, bool $endOfValue = false)
579579
{
580+
if (null === $this->colors) {
581+
$this->colors = $this->supportsColors();
582+
}
583+
580584
if ($this->colors) {
581585
$this->line = sprintf("\033[%sm%s\033[m", $this->styles['default'], $this->line);
582586
}

0 commit comments

Comments
 (0)