From cb745a04ae5208cfc9cb26a32f5c8d5cb633cd55 Mon Sep 17 00:00:00 2001 From: Antonio Pedicini Date: Thu, 31 Oct 2024 16:35:45 +0000 Subject: [PATCH] Update CartRepositoryInterface.php Given it uses \Magento\Quote\Model\QuoteRepository\SaveHandler::save which throws 3 exception I think they also should be declared at interface level --- app/code/Magento/Quote/Api/CartRepositoryInterface.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/code/Magento/Quote/Api/CartRepositoryInterface.php b/app/code/Magento/Quote/Api/CartRepositoryInterface.php index dc0ce80f74ddf..208de279a40b7 100644 --- a/app/code/Magento/Quote/Api/CartRepositoryInterface.php +++ b/app/code/Magento/Quote/Api/CartRepositoryInterface.php @@ -68,6 +68,9 @@ public function getActiveForCustomer($customerId, array $sharedStoreIds = []); * * @param \Magento\Quote\Api\Data\CartInterface $quote * @return void + * @throws \Magento\Framework\Exception\InputException + * @throws \Magento\Framework\Exception\CouldNotSaveException + * @throws \Magento\Framework\Exception\LocalizedException */ public function save(\Magento\Quote\Api\Data\CartInterface $quote);