From 7c70ec2bc3b309eae784e83e0e1df009cd5fa224 Mon Sep 17 00:00:00 2001 From: Kevin Lot Date: Mon, 2 Jul 2018 10:08:22 +0200 Subject: [PATCH] ChoiceValidator : remove 'strict' option Since https://github.com/symfony/validator/commit/52feb05c34551058cb2ae8be515c3632bd7fb5b4#diff-343abfd5be03d0bef6587c21d10d0dd9. 'strict' option did not exist anymore. --- reference/constraints/Choice.rst | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index 79c2af61aff..22601a87ebc 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -17,7 +17,6 @@ an array of items is one of those valid choices. | | - `multipleMessage`_ | | | - `minMessage`_ | | | - `maxMessage`_ | -| | - `strict`_ | | | - `payload`_ | +----------------+----------------------------------------------------------------------+ | Class | :class:`Symfony\\Component\\Validator\\Constraints\\Choice` | @@ -360,13 +359,4 @@ maxMessage This is the validation error message that's displayed when the user chooses too many options per the `max`_ option. -strict -~~~~~~ - -**type**: ``boolean`` **default**: ``true`` - -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. - .. include:: /reference/constraints/_payload-option.rst.inc