Skip to content

Commit

Permalink
Prevent deprecated message
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdekruijk committed Aug 19, 2022
1 parent f178bd2 commit 8290c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function locale($key, array $item, $default)
return $item[$key];
}

return ucfirst(str_replace('_', ' ', $default));
return ucfirst(str_replace('_', ' ', $default ?: ''));
}

// Check if authenticated user has a valid role
Expand Down

0 comments on commit 8290c40

Please sign in to comment.