Skip to content

Commit

Permalink
[Serializer] PropertyNormalizer - return unique (i.e. filter duplicat…
Browse files Browse the repository at this point in the history
…e ) attributes in extractAttributes function
  • Loading branch information
satalaondrej authored and fabpot committed Nov 18, 2021
1 parent 4c12f7d commit b5704a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Normalizer/PropertyNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function extractAttributes($object, $format = null, array $context = [
}
} while ($reflectionObject = $reflectionObject->getParentClass());

return $attributes;
return array_unique($attributes);
}

/**
Expand Down

0 comments on commit b5704a9

Please sign in to comment.