Skip to content

Commit e5bab74

Browse files
authored
Merge pull request #4 from QuentinBontemps/patch-1
Fixe error "Array to string conversion"
2 parents c457ee8 + 371039a commit e5bab74

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Console/ExportToCsvCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ private function saveTranslationsToFile($output, $translations)
176176
{
177177
foreach ($translations as $group => $files) {
178178
foreach($files as $key => $value) {
179+
if(is_array($value)) {
180+
continue;
181+
}
179182
$this->writeFile($output, $group, $key, $value);
180183
}
181184
}
@@ -235,4 +238,4 @@ private function sayItsFinish()
235238
. PHP_EOL);
236239
}
237240

238-
}
241+
}

0 commit comments

Comments
 (0)