Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e68678a

Browse filesBrowse files
committed
minor #10868 [Validator] Fix @Valid regarding property traverse (corphi)
This PR was merged into the 3.4 branch. Discussion ---------- [Validator] Fix `@Valid` regarding property `traverse` While researching for symfony/symfony#27090, the constraint reference turned out to be incorrect. Commits ------- 6343b24 Describe actual traversal behaviour
2 parents 46e650f + 6343b24 commit e68678a
Copy full SHA for e68678a

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎reference/constraints/Valid.rst

Copy file name to clipboardExpand all lines: reference/constraints/Valid.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ traverse
262262

263263
**type**: ``boolean`` **default**: ``true``
264264

265-
If this constraint is applied to a property that holds an array of objects,
266-
then each object in that array will be validated only if this option is
267-
set to ``true``.
265+
If this constraint is applied to a ``Traversable``, then all containing values
266+
will be validated if this option is set to ``true``. This option is ignored on
267+
arrays: Arrays are traversed in either case. Keys are not validated.
268268

269269
.. include:: /reference/constraints/_payload-option.rst.inc
270270

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.