From 57bc474472f488f3c7fcf1b1448f793caadb4ed0 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 27 Mar 2024 22:24:38 +0100 Subject: [PATCH] stop marking parameters implicitly as nullable --- Tests/Fixtures/TranslatableTextAlign.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Fixtures/TranslatableTextAlign.php b/Tests/Fixtures/TranslatableTextAlign.php index 7a5d5cdff..4464088c7 100644 --- a/Tests/Fixtures/TranslatableTextAlign.php +++ b/Tests/Fixtures/TranslatableTextAlign.php @@ -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); }