From 66cfcc0b5c953a1801b108d9470333efd9b6ad3f Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Mon, 17 Apr 2023 12:59:46 +0100 Subject: [PATCH] Fixed deprecation warning in Mage_SalesRule_Model_Rule --- app/code/core/Mage/SalesRule/Model/Rule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/SalesRule/Model/Rule.php b/app/code/core/Mage/SalesRule/Model/Rule.php index 9325bd7d885..2055367d69b 100644 --- a/app/code/core/Mage/SalesRule/Model/Rule.php +++ b/app/code/core/Mage/SalesRule/Model/Rule.php @@ -200,7 +200,7 @@ protected function _afterLoad() */ protected function _afterSave() { - $couponCode = trim($this->getCouponCode()); + $couponCode = trim((string)$this->getCouponCode()); if (strlen($couponCode) && $this->getCouponType() == self::COUPON_TYPE_SPECIFIC && !$this->getUseAutoGeneration()