Skip to content

Commit

Permalink
Only traverse arrays that should be cascaded
Browse files Browse the repository at this point in the history
  • Loading branch information
corphi committed Jan 6, 2019
1 parent 1207780 commit 90e4814
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -655,8 +655,8 @@ private function validateGenericNode($value, $object, $cacheKey, MetadataInterfa

$cascadingStrategy = $metadata->getCascadingStrategy();

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

Expand Down

0 comments on commit 90e4814

Please sign in to comment.