From 1d161eb6a9c8cfb3b079fcb839cf2f65ce887d79 Mon Sep 17 00:00:00 2001 From: Mohamed ELIDRISSI <67818913+elidrissidev@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:52:17 +0100 Subject: [PATCH] Fix a Type Error when converting an Order with no Coupon to a Quote (#3492) --- app/code/core/Mage/Sales/Model/Quote.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/core/Mage/Sales/Model/Quote.php b/app/code/core/Mage/Sales/Model/Quote.php index ceca03d598b..c051774cdb7 100644 --- a/app/code/core/Mage/Sales/Model/Quote.php +++ b/app/code/core/Mage/Sales/Model/Quote.php @@ -2096,10 +2096,10 @@ public function getCouponCode(): string } /** - * @param string $couponCode + * @param string|null $couponCode * @return $this */ - public function setCouponCode(string $couponCode) + public function setCouponCode(?string $couponCode) { return $this->setData('coupon_code', $couponCode); }