Skip to content

Commit

Permalink
handle-missing-translations Avoid php strtr Argument laravel#1 type e…
Browse files Browse the repository at this point in the history
…rror.
  • Loading branch information
Dean Wunder committed Dec 3, 2023
1 parent cd89253 commit 9f032c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Illuminate/Translation/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ protected function makeReplacements($line, array $replace)
if (empty($replace)) {
return $line;
}
if (is_array($line)) {
return $line;
}

$shouldReplace = [];

Expand Down

0 comments on commit 9f032c4

Please sign in to comment.