Skip to content

Commit

Permalink
Fix PHPStan code validation issues in Product Model
Browse files Browse the repository at this point in the history
  • Loading branch information
hws47a committed Feb 6, 2020
1 parent c9e79cb commit 73ba904
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/code/Magento/Catalog/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ public function reset()
*/
public function getCacheIdTags()
{
$tags = parent::getCacheIdTags();
$tags = (array)$this->getData('cache_id_tags');
$affectedCategoryIds = $this->getAffectedCategoryIds();
if (!$affectedCategoryIds) {
$affectedCategoryIds = $this->getCategoryIds();
Expand Down Expand Up @@ -2334,7 +2334,8 @@ public function isDisabled()
public function getImage()
{
$this->getTypeInstance()->setImageFromChildProduct($this);
return parent::getImage();

return (string)$this->getData('image');
}

/**
Expand Down

0 comments on commit 73ba904

Please sign in to comment.