From 21ec96b75c7061a17fc42bd1ff55f822a2bb7615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 11 Mar 2025 15:31:30 +0100 Subject: [PATCH] fixup! Add Rector Rule to inject normalization methods into export classes --- .../ChillBundleAddNormalizationMethodsOnExportRector.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/rector/src/Rector/ChillBundleAddNormalizationMethodsOnExportRector.php b/utils/rector/src/Rector/ChillBundleAddNormalizationMethodsOnExportRector.php index bb2e6aa57..e5d265ed4 100644 --- a/utils/rector/src/Rector/ChillBundleAddNormalizationMethodsOnExportRector.php +++ b/utils/rector/src/Rector/ChillBundleAddNormalizationMethodsOnExportRector.php @@ -22,6 +22,7 @@ use Chill\MainBundle\Form\Type\ChillDateTimeType; use Chill\MainBundle\Form\Type\ChillDateType; use Chill\MainBundle\Form\Type\PickRollingDateType; use Chill\MainBundle\Form\Type\PickUserDynamicType; +use Chill\MainBundle\Form\Type\PickUserLocationType; use Chill\MainBundle\Service\RollingDate\RollingDate; use PhpParser\Node; use PhpParser\Node\Expr\PropertyFetch; @@ -334,7 +335,7 @@ class ChillBundleAddNormalizationMethodsOnExportRector extends AbstractRector return [ ...$previous ?? [], $key => match($argType->class->toString()) { - EntityType::class, PickUserDynamicType::class => 'entity', + EntityType::class, PickUserDynamicType::class, PickUserLocationType::class => 'entity', PickRollingDateType::class => 'rolling_date', ChillDateType::class, ChillDateTimeType::class, DateTimeType::class, DateType::class => 'date', default => 'scalar',