diff --git a/src/mako/cli/output/Output.php b/src/mako/cli/output/Output.php index cef53d3fa..437c08962 100644 --- a/src/mako/cli/output/Output.php +++ b/src/mako/cli/output/Output.php @@ -35,6 +35,11 @@ class Output */ protected bool $muted = false; + /** + * Cursor. + */ + protected Cursor $cursor; + /** * Constructor. */ @@ -42,10 +47,9 @@ public function __construct( protected WriterInterface $standard = new Standard, protected WriterInterface $error = new Error, protected Environment $environment = new Environment, - protected ?Cursor $cursor = null, protected ?FormatterInterface $formatter = null, ) { - $this->cursor ??= new Cursor($this); + $this->cursor = new Cursor($this); } /**