mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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
|
||||
->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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user