Skip to content

Commit

Permalink
Update Output.php
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Nov 2, 2024
1 parent 5c9c030 commit dd018e4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mako/cli/output/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,21 @@ class Output
*/
protected bool $muted = false;

/**
* Cursor.
*/
protected Cursor $cursor;

/**
* Constructor.
*/
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);
}

/**
Expand Down

0 comments on commit dd018e4

Please sign in to comment.