'error_bubbling' => false,
'compound' =>
$compound,
// The view data is always a string or an array of strings,
// even if the "data" option is manually set to an object.
// See https://github.com/symfony/symfony/pull/5582
'data_class' => null,
'choice_translation_domain' => true,
'trim' => false,
'invalid_message' => 'The selected choice is invalid.',
]);
$resolver->
setNormalizer('placeholder',
$placeholderNormalizer);
$resolver->
setNormalizer('choice_translation_domain',
$choiceTranslationDomainNormalizer);
$resolver->
setAllowedTypes('choices',
['null', 'array', \Traversable::
class]);
$resolver->
setAllowedTypes('choice_translation_domain',
['null', 'bool', 'string'
]);
$resolver->
setAllowedTypes('choice_loader',
['null', ChoiceLoaderInterface::
class, ChoiceLoader::
class]);
$resolver->
setAllowedTypes('choice_filter',
['null', 'callable', 'string', PropertyPath::
class, ChoiceFilter::
class]);
$resolver->
setAllowedTypes('choice_label',
['null', 'bool', 'callable', 'string', PropertyPath::
class, ChoiceLabel::
class]);
$resolver->
setAllowedTypes('choice_name',
['null', 'callable', 'string', PropertyPath::
class, ChoiceFieldName::
class]);
$resolver->
setAllowedTypes('choice_value',
['null', 'callable', 'string', PropertyPath::
class, ChoiceValue::
class]);
$resolver->
setAllowedTypes('choice_attr',
['null', 'array', 'callable', 'string', PropertyPath::
class, ChoiceAttr::
class]);
$resolver->
setAllowedTypes('choice_translation_parameters',
['null', 'array', 'callable', ChoiceTranslationParameters::
class]);