diff --git a/Application/Model/ExportRenderer/RendererBridge.php b/Application/Model/ExportRenderer/RendererBridge.php index b3533f3..545dec3 100644 --- a/Application/Model/ExportRenderer/RendererBridge.php +++ b/Application/Model/ExportRenderer/RendererBridge.php @@ -41,9 +41,12 @@ class RendererBridge */ public function getRenderer(string $format = self::FORMAT_CSV): RendererInterface { - $rendererList = $this->getRendererList(); + $format = strtolower($format); - if (in_array($format, array_keys($rendererList))) { + $rendererList = array_change_key_case($this->getRendererList(), CASE_LOWER); + $rendererListTypes = array_keys(array_change_key_case($rendererList, CASE_LOWER)); + + if (in_array($format, $rendererListTypes, true)) { return $rendererList[$format]; }