Skip to content

Commit 851d8da

Browse files
authored
Merge pull request #6999 from kenjis/refactor-Language-requireFile
refactor: to fix psalm error
2 parents 1284e73 + 7d4d061 commit 851d8da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

system/Language/Language.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ protected function requireFile(string $path): array
252252
}
253253

254254
if (isset($strings[1])) {
255-
$strings = array_replace_recursive(...$strings);
255+
$string = array_shift($strings);
256+
257+
$strings = array_replace_recursive($string, ...$strings);
256258
} elseif (isset($strings[0])) {
257259
$strings = $strings[0];
258260
}

0 commit comments

Comments
 (0)