Skip to content

Commit

Permalink
Merge pull request #14 from PaulRoth/patch-1
Browse files Browse the repository at this point in the history
Recursive check for hidden properties.
  • Loading branch information
nilportugues committed Mar 13, 2017
2 parents 92ae224 + e68df61 commit 6759043
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Transformer/Helpers/RecursiveDeleteHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ protected static function deleteMatchedClassProperties(
if (!empty($deletions)) {
self::deleteNextLevelProperties($mappings, $array, $typeKey, $deletions, $newArray);
}
} else {
foreach ($array as &$subArray) {
if (is_array($subArray)) {
self::deleteProperties($mappings, $subArray, $typeKey);
}
}
}
}
}

0 comments on commit 6759043

Please sign in to comment.