diff --git a/src/Sameday/Responses/SamedayGetParcelStatusHistoryResponse.php b/src/Sameday/Responses/SamedayGetParcelStatusHistoryResponse.php index 7b7edbf..68f5095 100644 --- a/src/Sameday/Responses/SamedayGetParcelStatusHistoryResponse.php +++ b/src/Sameday/Responses/SamedayGetParcelStatusHistoryResponse.php @@ -111,7 +111,7 @@ private function parseHistory(array $json) $json['statusLabel'], $json['statusState'], new DateTime($json['statusDate']), - $json['county'], + $json['county'] ?: null, $json['reason'], $json['transitLocation'] ); @@ -132,7 +132,7 @@ private function parseExpedition(array $json) $json['statusLabel'], $json['statusState'], new DateTime($json['statusDate']), - $json['county'], + $json['county'] ?: null, $json['reason'], $json['transitLocation'], $json['expeditionDetails'] diff --git a/src/Sameday/SamedayClient.php b/src/Sameday/SamedayClient.php index 8c40827..0082bc3 100755 --- a/src/Sameday/SamedayClient.php +++ b/src/Sameday/SamedayClient.php @@ -27,7 +27,7 @@ */ class SamedayClient implements SamedayClientInterface { - const VERSION = '2.1.5'; + const VERSION = '2.1.6'; const API_HOST = 'https://api.sameday.ro'; const KEY_TOKEN = 'token'; const KEY_TOKEN_EXPIRES = 'expires_at';