We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88c24aa commit 89d402cCopy full SHA for 89d402c
reference/constraints/Choice.rst
@@ -367,10 +367,15 @@ too many options per the `max`_ option.
367
strict
368
~~~~~~
369
370
-**type**: ``boolean`` **default**: ``false``
+**type**: ``boolean`` **default**: ``true``
371
372
-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,
373
this value is passed to as the third argument to the PHP :phpfunction:`in_array`
374
method when checking to see if a value is in the valid choices array.
375
376
+.. caution::
377
+
378
+ Setting the strict option of the Choice Constraint to ``false`` has been
379
+ deprecated as of Symfony 3.2 and the option will be changed to ``true`` as of 4.0.
380
381
.. include:: /reference/constraints/_payload-option.rst.inc
0 commit comments