Skip to content

Commit

Permalink
Fix a Type Error when converting an Order with no Coupon to a Quote (O…
Browse files Browse the repository at this point in the history
  • Loading branch information
elidrissidev committed Sep 4, 2023
1 parent 0e44266 commit 1d161eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/core/Mage/Sales/Model/Quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1d161eb

Please sign in to comment.