We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a8967af + 899f468 commit 20e0bbbCopy full SHA for 20e0bbb
Service/TrackingService.php
@@ -51,7 +51,7 @@ public function parseResponse($response): TrackingResponse
51
$body = $responses[0]['body'];
52
$status = $body['status'][0];
53
if ($status['code'] !== "0") {
54
- throw new TrackingRequestException($status['message'], $status['code']);
+ throw new TrackingRequestException($status['message'], $status['code'] ?? 0);
55
}
56
57
$parcel = $body['parcel'];
0 commit comments