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(); } /**