fix deprecations: use fqcn for textarea

This commit is contained in:
nobohan 2018-04-04 18:42:56 +02:00
parent 14412c87fe
commit 3e9690f47e

View File

@ -29,6 +29,7 @@ use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Bundle\TwigBundle\TwigEngine; use Symfony\Bundle\TwigBundle\TwigEngine;
use Chill\MainBundle\Templating\TranslatableStringHelper; use Chill\MainBundle\Templating\TranslatableStringHelper;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
/** /**
* @author Julien Fastré <julien.fastre@champs-libres.coop> * @author Julien Fastré <julien.fastre@champs-libres.coop>
@ -76,7 +77,7 @@ class CustomFieldText extends AbstractCustomField
$options = $customField->getOptions(); $options = $customField->getOptions();
$type = ($options[self::MAX_LENGTH] < 256) ? 'text' $type = ($options[self::MAX_LENGTH] < 256) ? 'text'
: 'textarea'; : TextareaType::class;
$attrArray = array(); $attrArray = array();