Skip to content

Commit 526eef8

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [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
2 parents 376d3c6 + 462cbc0 commit 526eef8

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
@@ -576,6 +576,10 @@ protected function supportsColors(): bool
576576
*/
577577
protected function dumpLine(int $depth, bool $endOfValue = false)
578578
{
579+
if (null === $this->colors) {
580+
$this->colors = $this->supportsColors();
581+
}
582+
579583
if ($this->colors) {
580584
$this->line = sprintf("\033[%sm%s\033[m", $this->styles['default'], $this->line);
581585
}

0 commit comments

Comments
 (0)