We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Typed property Symfony\Component\VarDumper\Dumper\CliDumper::$colors must not be accessed before initialization
1 parent 5f6f1a5 commit 6e17610Copy full SHA for 6e17610
Dumper/CliDumper.php
@@ -550,7 +550,7 @@ protected function supportsColors(): bool
550
551
protected function dumpLine(int $depth, bool $endOfValue = false): void
552
{
553
- if ($this->colors) {
+ if ($this->colors ??= $this->supportsColors()) {
554
$this->line = sprintf("\033[%sm%s\033[m", $this->styles['default'], $this->line);
555
}
556
parent::dumpLine($depth);
0 commit comments