We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf40a3 commit c43a02aCopy full SHA for c43a02a
src/JsonApi/Serializer/CollectionNormalizer.php
@@ -90,7 +90,7 @@ protected function getItemsData($object, string $format = null, array $context =
90
$data['data'][] = $item['data'];
91
92
if (isset($item['included'])) {
93
- $data['included'] = array_merge($data['included'] ?? [], $item['included']);
+ $data['included'] = array_unique(array_merge($data['included'] ?? [], $item['included']), SORT_REGULAR);
94
}
95
96
0 commit comments