From 8fc19d5c28f8e6e93e179a0aca124672589512ed Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 2 Oct 2025 16:25:30 +0200 Subject: [PATCH] Rector sf6 changes --- src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php | 1 + .../Export/Messenger/OnExportGenerationFails.php | 2 +- .../ChillMainBundle/Form/Type/PickUserOrMeDynamicType.php | 2 +- .../Form/Type/PickLinkedAccompanyingPeriodWorkType.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php index 887eacca8..c1e6c3494 100644 --- a/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php +++ b/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php @@ -119,6 +119,7 @@ class CSVFormatter implements FormatterInterface array $exportData, array $filtersData, array $aggregatorsData, + \Chill\MainBundle\Export\ExportGenerationContext $context, ): Response { $this->result = $result; $this->orderingHeaders($formatterData); diff --git a/src/Bundle/ChillMainBundle/Export/Messenger/OnExportGenerationFails.php b/src/Bundle/ChillMainBundle/Export/Messenger/OnExportGenerationFails.php index 04c07f5cf..49c66921d 100644 --- a/src/Bundle/ChillMainBundle/Export/Messenger/OnExportGenerationFails.php +++ b/src/Bundle/ChillMainBundle/Export/Messenger/OnExportGenerationFails.php @@ -29,7 +29,7 @@ class OnExportGenerationFails implements EventSubscriberInterface private readonly EntityManagerInterface $entityManager, ) {} - public static function getSubscribedEvents() + public static function getSubscribedEvents(): array { return [ WorkerMessageFailedEvent::class => 'onMessageFailed', diff --git a/src/Bundle/ChillMainBundle/Form/Type/PickUserOrMeDynamicType.php b/src/Bundle/ChillMainBundle/Form/Type/PickUserOrMeDynamicType.php index 83761f8ef..0725518f2 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/PickUserOrMeDynamicType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/PickUserOrMeDynamicType.php @@ -75,7 +75,7 @@ class PickUserOrMeDynamicType extends AbstractType ->setAllowedTypes('submit_on_adding_new_entity', ['bool']); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'pick_entity_dynamic'; } diff --git a/src/Bundle/ChillPersonBundle/Form/Type/PickLinkedAccompanyingPeriodWorkType.php b/src/Bundle/ChillPersonBundle/Form/Type/PickLinkedAccompanyingPeriodWorkType.php index 6da33086b..46fbce9c5 100644 --- a/src/Bundle/ChillPersonBundle/Form/Type/PickLinkedAccompanyingPeriodWorkType.php +++ b/src/Bundle/ChillPersonBundle/Form/Type/PickLinkedAccompanyingPeriodWorkType.php @@ -44,7 +44,7 @@ class PickLinkedAccompanyingPeriodWorkType extends AbstractType ->setAllowedTypes('submit_on_adding_new_entity', ['bool']); } - public function getBlockPrefix() + public function getBlockPrefix(): string { return 'pick_linked_entities'; }