From d280ee33f30c92c20cdfb4b78c59cd588cda8576 Mon Sep 17 00:00:00 2001 From: Pablo Lozano Date: Tue, 9 Mar 2021 15:08:38 +0100 Subject: [PATCH] Change PhoneType to TelType (#284) --- Dynamic/Types/PhoneType.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dynamic/Types/PhoneType.php b/Dynamic/Types/PhoneType.php index cec0d1a6..7719ba42 100644 --- a/Dynamic/Types/PhoneType.php +++ b/Dynamic/Types/PhoneType.php @@ -14,7 +14,7 @@ use Sulu\Bundle\FormBundle\Dynamic\FormFieldTypeConfiguration; use Sulu\Bundle\FormBundle\Dynamic\FormFieldTypeInterface; use Sulu\Bundle\FormBundle\Entity\FormField; -use Symfony\Component\Form\Extension\Core\Type\TextType as TypeTextType; +use Symfony\Component\Form\Extension\Core\Type\TelType as TypeTelType; use Symfony\Component\Form\FormBuilderInterface; /** @@ -40,7 +40,7 @@ public function getConfiguration(): FormFieldTypeConfiguration */ public function build(FormBuilderInterface $builder, FormField $field, string $locale, array $options): void { - $type = TypeTextType::class; + $type = TypeTelType::class; $builder->add($field->getKey(), $type, $options); } }