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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy