From 90fb732e9433fdb51089949462320882caedb20b Mon Sep 17 00:00:00 2001 From: Ng Kiat Siong Date: Thu, 9 Jun 2022 17:37:06 +0800 Subject: [PATCH] Fixed PHPStan errors introduced in PR #1325. (#2207) --- app/code/core/Mage/Catalog/Model/Category/Indexer/Product.php | 2 +- .../Model/Resource/Product/Attribute/Backend/Urlkey.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/code/core/Mage/Catalog/Model/Category/Indexer/Product.php b/app/code/core/Mage/Catalog/Model/Category/Indexer/Product.php index af8df754727..3fb5ab431c4 100644 --- a/app/code/core/Mage/Catalog/Model/Category/Indexer/Product.php +++ b/app/code/core/Mage/Catalog/Model/Category/Indexer/Product.php @@ -191,7 +191,7 @@ protected function _registerProductEvent(Mage_Index_Model_Event $event) { $eventType = $event->getType(); if ($eventType == Mage_Index_Model_Event::TYPE_SAVE) { - /** @var Varien_Object|Mage_Catalog_Model_Product $product */ + /** @var Mage_Catalog_Model_Product $product */ $product = $event->getDataObject(); /** * Check if product categories data was changed diff --git a/app/code/core/Mage/Catalog/Model/Resource/Product/Attribute/Backend/Urlkey.php b/app/code/core/Mage/Catalog/Model/Resource/Product/Attribute/Backend/Urlkey.php index 6b884350506..79265994f57 100644 --- a/app/code/core/Mage/Catalog/Model/Resource/Product/Attribute/Backend/Urlkey.php +++ b/app/code/core/Mage/Catalog/Model/Resource/Product/Attribute/Backend/Urlkey.php @@ -38,7 +38,7 @@ class Mage_Catalog_Model_Resource_Product_Attribute_Backend_Urlkey extends Mage_ /** * Before save * - * @param Varien_Object $object + * @param Mage_Catalog_Model_Product $object * @return $this */ public function beforeSave($object) @@ -58,7 +58,7 @@ public function beforeSave($object) /** * Refresh product rewrites * - * @param Varien_Object $object + * @param Mage_Catalog_Model_Product $object * @return $this */ public function afterSave($object)