mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
fix deprecation: remove array on addAllowedValues
This commit is contained in:
parent
ebd5e03d54
commit
0f1c4d1120
@ -113,10 +113,8 @@ class CustomFieldType extends AbstractType
|
||||
));
|
||||
|
||||
$resolver->setRequired(array('type', 'group_widget'))
|
||||
->addAllowedValues(array(
|
||||
'type' => array_keys($this->customFieldProvider->getAllFields()),
|
||||
'group_widget' => array('hidden', 'entity')
|
||||
))
|
||||
->addAllowedValues('type', array_keys($this->customFieldProvider->getAllFields()))
|
||||
->addAllowedValues('group_widget', array('hidden', 'entity'))
|
||||
->setDefault('group_widget', 'entity');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user