File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -367,10 +367,15 @@ too many options per the `max`_ option.
367
367
strict
368
368
~~~~~~
369
369
370
- **type **: ``boolean `` **default **: ``false ``
370
+ **type **: ``boolean `` **default **: ``true ``
371
371
372
- If true, the validator will also check the type of the input value. Specifically,
372
+ The validator will also check the type of the input value. Specifically,
373
373
this value is passed to as the third argument to the PHP :phpfunction: `in_array `
374
374
method when checking to see if a value is in the valid choices array.
375
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
+
376
381
.. include :: /reference/constraints/_payload-option.rst.inc
You can’t perform that action at this time.
0 commit comments