From aaa1c96d95d289d9f018b85ab8dceb84f9690592 Mon Sep 17 00:00:00 2001 From: tim Date: Sat, 23 Oct 2021 22:03:16 +0200 Subject: [PATCH] Allow not delivered deliveries --- src/Objects/Delivery.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Objects/Delivery.php b/src/Objects/Delivery.php index b67e498..5f60810 100644 --- a/src/Objects/Delivery.php +++ b/src/Objects/Delivery.php @@ -13,11 +13,11 @@ class Delivery extends AbstractApiObject private string $id, private string $deliveryId, private string $creationTime, - private array $slot, - private array $eta2, + private array $slot, + private array $eta2, private string $status, - private array $deliveryTime, - private array $orders, + private array $deliveryTime, + private array $orders, ) { } @@ -36,7 +36,7 @@ class Delivery extends AbstractApiObject $apiObject['slot'], $apiObject['eta2'], $apiObject['status'], - $apiObject['delivery_time'], + $apiObject['delivery_time'] ?? [], ApiListTransformer::getObjects($apiObject['orders']), ); }