Skip to content

Commit 8e76a96

Browse files
authored
Update HasTranslations.php
1 parent d958b68 commit 8e76a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/HasTranslations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ trait HasTranslations
1010
/**
1111
* Get the translated $attribute if not exist return the fallback translation
1212
*/
13-
public function getTranslated(string $attribute, ?string $lang = null): string {
13+
public function getTranslated(string $attribute, ?string $lang = null): ?string {
1414
if (!$lang) {
1515
$lang = App::getLocale();
1616
}

0 commit comments

Comments
 (0)