From 14df8fe9ad0888e4ba456a41a199aea4371954d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 28 Feb 2023 22:09:07 +0100 Subject: [PATCH] DX: remove implicit creation of a variable --- .../Service/DocGenerator/CalendarContext.php | 2 ++ 1 file changed, 2 insertions(+) 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)) {