Skip to content

Commit

Permalink
return null when $key is null
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiSaremi authored Sep 30, 2024
1 parent 7aabb89 commit acc98d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ function trans_choice($key, $number, array $replace = [], $locale = null)
function __($key = null, $replace = [], $locale = null)
{
if (is_null($key)) {
return $key;
return null;
}

return trans($key, $replace, $locale);
Expand Down

0 comments on commit acc98d7

Please sign in to comment.