Skip to content

Commit

Permalink
stop marking parameters implicitly as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Mar 27, 2024
1 parent 46df6c8 commit 57bc474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Fixtures/TranslatableTextAlign.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum TranslatableTextAlign implements TranslatableInterface
case Center;
case Right;

public function trans(TranslatorInterface $translator, string $locale = null): string
public function trans(TranslatorInterface $translator, ?string $locale = null): string
{
return $translator->trans($this->name, locale: $locale);
}
Expand Down

0 comments on commit 57bc474

Please sign in to comment.