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 90e4814

Browse filesBrowse files
committed
Only traverse arrays that should be cascaded
1 parent 1207780 commit 90e4814
Copy full SHA for 90e4814

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,8 @@ private function validateGenericNode($value, $object, $cacheKey, MetadataInterfa
655655

656656
$cascadingStrategy = $metadata->getCascadingStrategy();
657657

658-
// Quit unless we have an array or a cascaded object
659-
if (!\is_array($value) && !($cascadingStrategy & CascadingStrategy::CASCADE)) {
658+
// Quit unless we cascade
659+
if (!($cascadingStrategy & CascadingStrategy::CASCADE)) {
660660
return;
661661
}
662662

0 commit comments

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