From 8e9b94898f34db3419c25d3c5faef46d6296d356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 19 Apr 2017 00:29:35 +0200 Subject: [PATCH] fix error when filter::describeAction return an array with only one element --- Export/Formatter/SpreadSheetFormatter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);