diff --git a/Form/AccompanyingPeriodType.php b/Form/AccompanyingPeriodType.php index 4ccdef6ce..0d5967f1b 100644 --- a/Form/AccompanyingPeriodType.php +++ b/Form/AccompanyingPeriodType.php @@ -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)