Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[OptionsResolver] [Form] Options are normalized before validation #11699

Closed
@kix

Description

@kix

OptionsResolve::resolve method produces Options::all call before validating option values. Options::all call then executes normalizers with options that have not been validated yet. This makes it impossible to constrain options that are passed to normalizers in form types, like ChoiceType, CollectionType, CountryType, LanguageType, LocaleType, TimezoneType, TimeType and CurrencyType.

This issue was discovered while fixing #11694 with PR #11696

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions