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.
This commit is contained in:
Julien Fastré 2024-06-24 11:28:04 +02:00
parent 49dd7f94fa
commit d3d98cdec2
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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');