From 4874e5cc6cd8cbf79890e6782a91bfd80bbf3c8d Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Tue, 18 Apr 2023 09:07:28 +0100 Subject: [PATCH] Fixed deprecation warning in Mage_SalesRule_Model_Rule (#3188) --- 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()