diff --git a/src/Translator.php b/src/Translator.php index 880f98d..f496f08 100644 --- a/src/Translator.php +++ b/src/Translator.php @@ -72,8 +72,8 @@ public function getLocale(): string public function translate( string|Stringable $id, array $parameters = [], - string $category = null, - string $locale = null + ?string $category = null, + ?string $locale = null ): string { $locale ??= $this->locale; diff --git a/src/TranslatorInterface.php b/src/TranslatorInterface.php index 3a4242b..5adcdc3 100644 --- a/src/TranslatorInterface.php +++ b/src/TranslatorInterface.php @@ -46,8 +46,8 @@ public function getLocale(): string; public function translate( string|Stringable $id, array $parameters = [], - string $category = null, - string $locale = null + ?string $category = null, + ?string $locale = null ): string; /**