fix: printer with --colors

This commit is contained in:
nuno maduro
2026-04-10 19:21:49 +01:00
parent e8d630e774
commit acd8aafa63

View File

@ -62,12 +62,12 @@ final class CompactPrinter
/** /**
* Creates a new instance of the Compact Printer. * Creates a new instance of the Compact Printer.
*/ */
public static function default(): self public static function default(bool $decorated = true): self
{ {
return new self( return new self(
terminal(), terminal(),
new ConsoleOutput(decorated: true), new ConsoleOutput(decorated: $decorated),
new Style(new ConsoleOutput(decorated: true)), new Style(new ConsoleOutput(decorated: $decorated)),
terminal()->width() - 4, terminal()->width() - 4,
); );
} }