From 5e92f23ad1bd845ddc9b979fa8afaa89d56d1321 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Mon, 6 Nov 2023 17:01:22 +0100 Subject: [PATCH] fix(orders): reset index on collection --- src/Pdk/Order/Repository/PsPdkOrderRepository.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Pdk/Order/Repository/PsPdkOrderRepository.php b/src/Pdk/Order/Repository/PsPdkOrderRepository.php index 8ce2031f..88590d52 100644 --- a/src/Pdk/Order/Repository/PsPdkOrderRepository.php +++ b/src/Pdk/Order/Repository/PsPdkOrderRepository.php @@ -12,8 +12,6 @@ use MyParcelNL\Pdk\Base\Contract\CurrencyServiceInterface; use MyParcelNL\Pdk\Base\Contract\WeightServiceInterface; use MyParcelNL\Pdk\Base\Support\Collection; -use MyParcelNL\Pdk\Shipment\Model\CustomsDeclaration; -use MyParcelNL\Pdk\Shipment\Model\CustomsDeclarationItem; use MyParcelNL\Pdk\Shipment\Model\Shipment; use MyParcelNL\Pdk\Storage\MemoryCacheStorage; use MyParcelNL\PrestaShop\Contract\PsOrderServiceInterface; @@ -230,7 +228,8 @@ protected function getShipments(PsOrder $psOrder): Collection 'id' => $shipment->getShipmentId(), 'orderId' => $shipment->getOrderId(), ]); - }); + }) + ->values(); } /**