Skip to content

Commit b5704a9

Browse files
satalaondrejfabpot
authored andcommitted
[Serializer] PropertyNormalizer - return unique (i.e. filter duplicate ) attributes in extractAttributes function
1 parent 4c12f7d commit b5704a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Normalizer/PropertyNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function extractAttributes($object, $format = null, array $context = [
119119
}
120120
} while ($reflectionObject = $reflectionObject->getParentClass());
121121

122-
return $attributes;
122+
return array_unique($attributes);
123123
}
124124

125125
/**

0 commit comments

Comments
 (0)