diff --git a/src/Bundle/ChillCalendarBundle/Service/DocGenerator/CalendarContext.php b/src/Bundle/ChillCalendarBundle/Service/DocGenerator/CalendarContext.php index aed77bc65..6eadaf997 100644 --- a/src/Bundle/ChillCalendarBundle/Service/DocGenerator/CalendarContext.php +++ b/src/Bundle/ChillCalendarBundle/Service/DocGenerator/CalendarContext.php @@ -238,6 +238,7 @@ final class CalendarContext implements CalendarContextInterface public function contextGenerationDataNormalize(DocGeneratorTemplate $template, $entity, array $data): array { + $normalized = []; $normalized['title'] = $data['title'] ?? ''; foreach (['mainPerson', 'thirdParty'] as $k) { @@ -251,6 +252,7 @@ final class CalendarContext implements CalendarContextInterface public function contextGenerationDataDenormalize(DocGeneratorTemplate $template, $entity, array $data): array { + $denormalized = []; $denormalized['title'] = $data['title']; if (null !== ($data['mainPerson'] ?? null)) {