diff --git a/src/Drivers/Translation.php b/src/Drivers/Translation.php index 5ec47ef..853ab1b 100644 --- a/src/Drivers/Translation.php +++ b/src/Drivers/Translation.php @@ -65,6 +65,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(); + //Notice that only $value should be passed by reference, not $key. array_walk($translations, function (&$value, $key) use ($type, $group, $language, $languageTranslations) { $value = [ $this->sourceLanguage => $value,