Skip to content

Commit 73ba904

Browse files
committed
Fix PHPStan code validation issues in Product Model
1 parent c9e79cb commit 73ba904

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ public function reset()
21542154
*/
21552155
public function getCacheIdTags()
21562156
{
2157-
$tags = parent::getCacheIdTags();
2157+
$tags = (array)$this->getData('cache_id_tags');
21582158
$affectedCategoryIds = $this->getAffectedCategoryIds();
21592159
if (!$affectedCategoryIds) {
21602160
$affectedCategoryIds = $this->getCategoryIds();
@@ -2334,7 +2334,8 @@ public function isDisabled()
23342334
public function getImage()
23352335
{
23362336
$this->getTypeInstance()->setImageFromChildProduct($this);
2337-
return parent::getImage();
2337+
2338+
return (string)$this->getData('image');
23382339
}
23392340

23402341
/**

0 commit comments

Comments
 (0)