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 cbecea6 commit b038ed0Copy full SHA for b038ed0
webapp/src/Serializer/Shadowing/EventDenormalizer.php
@@ -56,7 +56,7 @@ public function denormalize(
56
$data['data'] = [$data['data']];
57
}
58
if ($operation === Operation::CREATE && count($data['data']) === 1) {
59
- $id = $data['data'][0]['id'];
+ $id = $data['data'][0]['id'] ?? null;
60
} elseif ($operation === Operation::DELETE) {
61
$id = $data['id'];
62
} else {
@@ -87,7 +87,7 @@ public function denormalize(
87
$data['id'] ?? null,
88
$eventType,
89
$operation,
90
- $data['data']['id'],
+ $data['data']['id'] ?? null,
91
$eventData,
92
);
93
0 commit comments