diff --git a/src/Scanner/FunctionsHandlersTrait.php b/src/Scanner/FunctionsHandlersTrait.php index a31da44..4730142 100644 --- a/src/Scanner/FunctionsHandlersTrait.php +++ b/src/Scanner/FunctionsHandlersTrait.php @@ -140,6 +140,6 @@ abstract protected function saveTranslation( ?string $domain, ?string $context, string $original, - string $plural = null + ?string $plural = null ): ?Translation; } diff --git a/src/Scanner/Scanner.php b/src/Scanner/Scanner.php index 62a9f7c..f8267b2 100644 --- a/src/Scanner/Scanner.php +++ b/src/Scanner/Scanner.php @@ -51,7 +51,7 @@ protected function saveTranslation( ?string $domain, ?string $context, string $original, - string $plural = null + ?string $plural = null ): ?Translation { if (is_null($domain)) { $domain = $this->defaultDomain;