Skip to content

Commit

Permalink
Change implicit type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Nov 25, 2024
1 parent de80a16 commit 0cf4a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SensioLabs/AnsiConverter/AnsiToHtmlConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AnsiToHtmlConverter
protected $inlineColors;
protected $colorNames;

public function __construct(Theme $theme = null, $inlineStyles = true, $charset = 'UTF-8')
public function __construct(?Theme $theme = null, $inlineStyles = true, $charset = 'UTF-8')
{
$this->theme = null === $theme ? new Theme() : $theme;
$this->inlineStyles = $inlineStyles;
Expand Down
2 changes: 1 addition & 1 deletion SensioLabs/AnsiConverter/Bridge/Twig/AnsiExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AnsiExtension extends AbstractExtension
/** @var AnsiToHtmlConverter */
private $converter;

public function __construct(AnsiToHtmlConverter $converter = null)
public function __construct(?AnsiToHtmlConverter $converter = null)
{
$this->converter = $converter ?: new AnsiToHtmlConverter();
}
Expand Down

0 comments on commit 0cf4a7e

Please sign in to comment.