Thanks to visit codestin.com Credit goes to github.com
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 e597a35 commit b163c7aCopy full SHA for b163c7a
src/Symfony/Component/VarDumper/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