mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fixup! Add Rector Rule to inject normalization methods into export classes
This commit is contained in:
parent
fcc61aa4c0
commit
da0d7a3b9e
@ -23,7 +23,9 @@ use Chill\MainBundle\Form\Type\ChillDateType;
|
|||||||
use Chill\MainBundle\Form\Type\PickRollingDateType;
|
use Chill\MainBundle\Form\Type\PickRollingDateType;
|
||||||
use Chill\MainBundle\Form\Type\PickUserDynamicType;
|
use Chill\MainBundle\Form\Type\PickUserDynamicType;
|
||||||
use Chill\MainBundle\Form\Type\PickUserLocationType;
|
use Chill\MainBundle\Form\Type\PickUserLocationType;
|
||||||
|
use Chill\MainBundle\Form\Type\Select2CountryType;
|
||||||
use Chill\MainBundle\Service\RollingDate\RollingDate;
|
use Chill\MainBundle\Service\RollingDate\RollingDate;
|
||||||
|
use Chill\ThirdPartyBundle\Form\Type\PickThirdpartyDynamicType;
|
||||||
use PhpParser\Node;
|
use PhpParser\Node;
|
||||||
use PhpParser\Node\Expr\PropertyFetch;
|
use PhpParser\Node\Expr\PropertyFetch;
|
||||||
use Rector\Rector\AbstractRector;
|
use Rector\Rector\AbstractRector;
|
||||||
@ -346,7 +348,7 @@ class ChillBundleAddNormalizationMethodsOnExportRector extends AbstractRector
|
|||||||
return [
|
return [
|
||||||
...$previous ?? [],
|
...$previous ?? [],
|
||||||
$key => match($argType->class->toString()) {
|
$key => match($argType->class->toString()) {
|
||||||
EntityType::class, PickUserDynamicType::class, PickUserLocationType::class => 'entity',
|
EntityType::class, PickUserDynamicType::class, PickUserLocationType::class, PickThirdpartyDynamicType::class, Select2CountryType::class => 'entity',
|
||||||
PickRollingDateType::class => 'rolling_date',
|
PickRollingDateType::class => 'rolling_date',
|
||||||
ChillDateType::class, ChillDateTimeType::class, DateTimeType::class, DateType::class => 'date',
|
ChillDateType::class, ChillDateTimeType::class, DateTimeType::class, DateType::class => 'date',
|
||||||
default => 'scalar',
|
default => 'scalar',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user