Skip to content

Commit 3b36838

Browse files
committed
Merge branch '2.0'
2 parents d056c8a + 3f2f9da commit 3b36838

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828
* Allow using PHP constants in YAML resources files
2929
* Upgrade to the latest version of the Hydra spec
3030

31+
## 2.0.11
32+
33+
* Ensure PHP 7.2 compatibility
34+
* Fix some bug regarding Doctrine joins
35+
* Let the `hydra_context` option take precedence over operation metadata
36+
* Fix relations handling by the non-hypermedia `ItemNormalizer` (raw JSON, XML)
37+
* Fix a bug in the JSON-LD context: should not be prefixed by `#`
38+
* Fix a bug regarding serialization groups in Hydra docs
39+
3140
## 2.0.10
3241

3342
* Performance improvement

src/Hydra/Serializer/DocumentationNormalizer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ private function getPropertyNameCollectionFactoryContext(ResourceMetadata $resou
160160

161161
if (isset($attributes['denormalization_context']['groups'])) {
162162
if (isset($context['serializer_groups'])) {
163-
$context['serializer_groups'] += $attributes['denormalization_context']['groups'];
163+
foreach ($attributes['denormalization_context']['groups'] as $groupName) {
164+
$context['serializer_groups'][] = $groupName;
165+
}
164166
} else {
165167
$context['serializer_groups'] = $attributes['denormalization_context']['groups'];
166168
}

0 commit comments

Comments
 (0)