fix deprecations: remove array for addAllowedTypes/Values

This commit is contained in:
nobohan 2018-04-04 18:25:22 +02:00
parent 9694445ba4
commit 7f6f41a2d8

View File

@ -69,9 +69,9 @@ class AccompanyingPeriodType extends AbstractType
$resolver $resolver
->setRequired(array('period_action')) ->setRequired(array('period_action'))
->addAllowedTypes(array('period_action' => 'string')) ->addAllowedTypes('period_action','string')
->addAllowedValues(array('period_action' => array( ->addAllowedValues('period_action', array(
'update', 'open', 'close', 'create'))); 'update', 'open', 'close', 'create'));
} }
public function buildView(FormView $view, FormInterface $form, array $options) public function buildView(FormView $view, FormInterface $form, array $options)