Skip to content

Commit

Permalink
Update HasTranslations.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sertxudev authored Aug 3, 2024
1 parent d958b68 commit 8e76a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ trait HasTranslations
/**
* Get the translated $attribute if not exist return the fallback translation
*/
public function getTranslated(string $attribute, ?string $lang = null): string {
public function getTranslated(string $attribute, ?string $lang = null): ?string {
if (!$lang) {
$lang = App::getLocale();
}
Expand Down

0 comments on commit 8e76a96

Please sign in to comment.