Skip to content

Commit 57bc474

Browse files
committed
stop marking parameters implicitly as nullable
1 parent 46df6c8 commit 57bc474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Fixtures/TranslatableTextAlign.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enum TranslatableTextAlign implements TranslatableInterface
2020
case Center;
2121
case Right;
2222

23-
public function trans(TranslatorInterface $translator, string $locale = null): string
23+
public function trans(TranslatorInterface $translator, ?string $locale = null): string
2424
{
2525
return $translator->trans($this->name, locale: $locale);
2626
}

0 commit comments

Comments
 (0)