Commit 7f6f41a2 authored by Julien Minet's avatar Julien Minet

fix deprecations: remove array for addAllowedTypes/Values

parent 9694445b
Pipeline #45942 failed with stages
in 5 minutes and 31 seconds
......@@ -69,9 +69,9 @@ class AccompanyingPeriodType extends AbstractType
$resolver
->setRequired(array('period_action'))
->addAllowedTypes(array('period_action' => 'string'))
->addAllowedValues(array('period_action' => array(
'update', 'open', 'close', 'create')));
->addAllowedTypes('period_action','string')
->addAllowedValues('period_action', array(
'update', 'open', 'close', 'create'));
}
public function buildView(FormView $view, FormInterface $form, array $options)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment