From 24833be6811b474e31ac8f6bca702c1a9ee98609 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Fri, 25 Nov 2022 14:15:56 +0100 Subject: [PATCH] take into account null value in formatter --- .../ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php index 4084bfb4f..6b77e5b2b 100644 --- a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php +++ b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php @@ -445,6 +445,8 @@ class SpreadSheetFormatter implements FormatterInterface $this->initializeCache($key); } + $value = null === $value ? '' : $value; + return call_user_func($this->cacheDisplayableResult[$key], $value); }