mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix deprecations: remove array for addAllowedTypes/Values
This commit is contained in:
parent
9694445ba4
commit
7f6f41a2d8
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user