Skip to content

Commit acf006b

Browse files
committed
minor #9162 Fixed the default value of Choice strict option (javiereguiluz)
This PR was merged into the 4.0 branch. Discussion ---------- Fixed the default value of Choice strict option This default value changed: In 3.4 and before, is `false`: https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Validator/Constraints/Choice.php#L37 In 4.0 and later, is `true`: https://github.com/symfony/symfony/blob/bd6df791f74c67766c714010ad1141fd815b6cba/src/Symfony/Component/Validator/Constraints/Choice.php#L37 Commits ------- 539b843 Fixed the default value of Choice strict option
2 parents a4ea022 + 539b843 commit acf006b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/Choice.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ too many options per the `max`_ option.
365365
strict
366366
~~~~~~
367367

368-
**type**: ``boolean`` **default**: ``false``
368+
**type**: ``boolean`` **default**: ``true``
369369

370370
The validator will also check the type of the input value. Specifically,
371371
this value is passed to as the third argument to the PHP :phpfunction:`in_array`

0 commit comments

Comments
 (0)