diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index 7aaaa3819d7..40edf97525e 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -367,10 +367,15 @@ too many options per the `max`_ option. strict ~~~~~~ -**type**: ``boolean`` **default**: ``false`` +**type**: ``boolean`` **default**: ``true`` -If true, the validator will also check the type of the input value. Specifically, +The validator will also check the type of the input value. Specifically, this value is passed to as the third argument to the PHP :phpfunction:`in_array` method when checking to see if a value is in the valid choices array. +.. caution:: + + Setting the strict option of the Choice Constraint to ``false`` has been + deprecated as of Symfony 3.2 and the option will be changed to ``true`` as of 4.0. + .. include:: /reference/constraints/_payload-option.rst.inc
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: