mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	fixup! Add Rector Rule to inject normalization methods into export classes
This commit is contained in:
		| @@ -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', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user