Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | yes/no |
Symfony version | 2.8 (think newer versions also affected) |
When you have a choice which has whitespaces in its values:
$options['choices'] = [
'test with whitespace ' => 'test with whitespace ',
]
The TrimListener
will trim the whitespace but the Validator will throw Invalid value test with whitespace
submitted.
Possible Solutions
When the option trim
is true the values of the choice should also been trimmed.