Skip to content

Commit 3c2f991

Browse files
committed
-
1 parent 98b4f12 commit 3c2f991

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ class OutputFormatterStyleStack implements ResetInterface
2424
*/
2525
private array $styles = [];
2626

27-
public function __construct(
28-
private OutputFormatterStyleInterface $emptyStyle = new OutputFormatterStyle(),
29-
) {
27+
private OutputFormatterStyleInterface $emptyStyle;
28+
29+
public function __construct(OutputFormatterStyleInterface $emptyStyle = null)
30+
{
31+
$this->emptyStyle = $emptyStyle ?? new OutputFormatterStyle();
3032
$this->reset();
3133
}
3234

0 commit comments

Comments
 (0)