From 21a2b96424b0e75d57d1239cd0b6d558ccea0aa2 Mon Sep 17 00:00:00 2001 From: Lito Date: Fri, 29 Nov 2024 12:50:44 +0100 Subject: [PATCH] Assign $output method parameter to $this->output on Generator The `$output` method parameter is not being assigned to the `$this->output` class variable. --- src/Generator.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index a509958d2..6d1a3bd53 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -42,7 +42,7 @@ class Generator /** * @param \Illuminate\Config\Repository $config * @param \Illuminate\View\Factory $view - * @param OutputInterface $output + * @param ?OutputInterface $output * @param string $helpers */ public function __construct( @@ -50,11 +50,12 @@ public function __construct( $config, /* Illuminate\View\Factory */ $view, - OutputInterface $output = null, + ?OutputInterface $output = null, $helpers = '' ) { $this->config = $config; $this->view = $view; + $this->output = $output; // Find the drivers to add to the extra/interfaces $this->detectDrivers();