fix deprecations: remove array in setAllowedTypes

This commit is contained in:
nobohan 2018-04-05 10:35:15 +02:00
parent eeff93c88a
commit bc6716a5fd

View File

@ -104,9 +104,7 @@ class ReportType extends AbstractType
'cFGroup',
));
$resolver->setAllowedTypes(array(
'cFGroup' => 'Chill\CustomFieldsBundle\Entity\CustomFieldsGroup',
));
$resolver->setAllowedTypes('cFGroup', 'Chill\CustomFieldsBundle\Entity\CustomFieldsGroup');
$this->appendScopeChoicesOptions($resolver);
}