From 5c9c0301f30ea39dccb19c49a4b31c97df1024a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederic=20G=2E=20=C3=98stby?= Date: Sat, 2 Nov 2024 15:47:23 +0100 Subject: [PATCH] Update Output.php --- src/mako/cli/output/Output.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mako/cli/output/Output.php b/src/mako/cli/output/Output.php index a895bd8ba..cef53d3fa 100644 --- a/src/mako/cli/output/Output.php +++ b/src/mako/cli/output/Output.php @@ -9,6 +9,8 @@ use mako\cli\Environment; use mako\cli\output\formatter\FormatterInterface; +use mako\cli\output\writer\Error; +use mako\cli\output\writer\Standard; use mako\cli\output\writer\WriterInterface; use function var_export; @@ -37,8 +39,8 @@ class Output * Constructor. */ public function __construct( - protected WriterInterface $standard, - protected WriterInterface $error, + protected WriterInterface $standard = new Standard, + protected WriterInterface $error = new Error, protected Environment $environment = new Environment, protected ?Cursor $cursor = null, protected ?FormatterInterface $formatter = null,