diff --git a/Export/Formatter/SpreadSheetFormatter.php b/Export/Formatter/SpreadSheetFormatter.php index b043b9564..45cd35d66 100644 --- a/Export/Formatter/SpreadSheetFormatter.php +++ b/Export/Formatter/SpreadSheetFormatter.php @@ -331,7 +331,10 @@ class SpreadSheetFormatter implements FormatterInterface if (is_array($description)) { $description = $this->translator - ->trans($description[0], $description[1]); + ->trans( + $description[0], + isset($description[1]) ? $description[1] : [] + ); } $worksheet->setCellValue('A'.$line, $description);