Skip to content

Commit b0073a7

Browse files
Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
1 parent 129138d commit b0073a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

TranslatableInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
*/
1717
interface TranslatableInterface
1818
{
19-
public function trans(TranslatorInterface $translator, string $locale = null): string;
19+
public function trans(TranslatorInterface $translator, ?string $locale = null): string;
2020
}

TranslatorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ interface TranslatorInterface
6363
*
6464
* @throws \InvalidArgumentException If the locale contains invalid characters
6565
*/
66-
public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null);
66+
public function trans(string $id, array $parameters = [], ?string $domain = null, ?string $locale = null);
6767
}

TranslatorTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getLocale()
4343
/**
4444
* {@inheritdoc}
4545
*/
46-
public function trans(?string $id, array $parameters = [], string $domain = null, string $locale = null): string
46+
public function trans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string
4747
{
4848
if (null === $id || '' === $id) {
4949
return '';

0 commit comments

Comments
 (0)