Skip to content

Commit

Permalink
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_…
Browse files Browse the repository at this point in the history
…null_value
  • Loading branch information
nicolas-grekas committed Jan 23, 2024
1 parent a47d5f1 commit 3af0840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PhpEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function setHelpers(array $helpers)
$this->addHelpers($helpers);
}

public function set(HelperInterface $helper, string $alias = null)
public function set(HelperInterface $helper, ?string $alias = null)
{
$this->helpers[$helper->getName()] = $helper;
if (null !== $alias) {
Expand Down
2 changes: 1 addition & 1 deletion TemplateReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class TemplateReference implements TemplateReferenceInterface
{
protected $parameters;

public function __construct(string $name = null, string $engine = null)
public function __construct(?string $name = null, ?string $engine = null)
{
$this->parameters = [
'name' => $name,
Expand Down

0 comments on commit 3af0840

Please sign in to comment.