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 Mar 25, 2019
1 parent ed3ce3c commit 4ac14a2
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 4ac14a2

Please sign in to comment.