From d3d98cdec281009c1bae78cbe3f2e9f0ba161f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 24 Jun 2024 11:28:04 +0200 Subject: [PATCH] Update method parameter type in ExportController The parameter type for the 'rebuildRawData' function in the ExportController class has been changed to accept null values. This change is introduced to handle cases where a null key might be passed, preventing potential errors in the application. --- src/Bundle/ChillMainBundle/Controller/ExportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Controller/ExportController.php b/src/Bundle/ChillMainBundle/Controller/ExportController.php index c23ebfda2..08b89e4bb 100644 --- a/src/Bundle/ChillMainBundle/Controller/ExportController.php +++ b/src/Bundle/ChillMainBundle/Controller/ExportController.php @@ -632,7 +632,7 @@ class ExportController extends AbstractController } } - private function rebuildRawData(string $key): array + private function rebuildRawData(?string $key): array { if (null === $key) { throw $this->createNotFoundException('key does not exists');