Skip to content

Commit 883abd8

Browse files
committed
Fix missing events array in complete shipping status response
1 parent ec3e5f7 commit 883abd8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Service/ResponseProcessor/Rest/ShippingStatusServiceRestResponseProcessor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ public function processCompleteStatusResponse(ResponseInterface $response): Comp
139139
unset($shipment->Event);
140140
}
141141

142+
if (!isset($shipment->Events)) {
143+
$shipment->Events = [];
144+
}
142145
if (!is_array(value: $shipment->Events)) {
143146
$shipment->Events = [$shipment->Events];
144147
}

0 commit comments

Comments
 (0)