Skip to content

Commit

Permalink
Array walk hotfix PHP 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tntsoft committed Jul 16, 2021
1 parent 36bbd5e commit e5aa544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getSourceLanguageTranslationsWith($language)
return $sourceTranslations->map(function ($groups, $type) use ($language, $languageTranslations) {
return $groups->map(function ($translations, $group) use ($type, $language, $languageTranslations) {
$translations = $translations->toArray();
array_walk($translations, function (&$value, &$key) use ($type, $group, $language, $languageTranslations) {
array_walk($translations, function (&$value, $key) use ($type, $group, $language, $languageTranslations) {
$value = [
$this->sourceLanguage => $value,
$language => $languageTranslations->get($type, collect())->get($group, collect())->get($key),
Expand Down

0 comments on commit e5aa544

Please sign in to comment.