We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98b4f12 commit 3c2f991Copy full SHA for 3c2f991
src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php
@@ -24,9 +24,11 @@ class OutputFormatterStyleStack implements ResetInterface
24
*/
25
private array $styles = [];
26
27
- public function __construct(
28
- private OutputFormatterStyleInterface $emptyStyle = new OutputFormatterStyle(),
29
- ) {
+ private OutputFormatterStyleInterface $emptyStyle;
+
+ public function __construct(OutputFormatterStyleInterface $emptyStyle = null)
30
+ {
31
+ $this->emptyStyle = $emptyStyle ?? new OutputFormatterStyle();
32
$this->reset();
33
}
34
0 commit comments