From 4c91838c1594f0e992dacebf9247efc401d18d7e Mon Sep 17 00:00:00 2001 From: Henry Snoek Date: Sat, 3 Dec 2016 11:34:10 +0100 Subject: [PATCH] strict default option for choice validation --- reference/constraints/Choice.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy