Skip to content

Commit f095f73

Browse files
#24460: Static test fix.
1 parent e5ce8ae commit f095f73

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,6 +2160,7 @@ public function reset()
21602160
*/
21612161
public function getCacheIdTags()
21622162
{
2163+
// phpstan:ignore
21632164
$tags = parent::getCacheIdTags();
21642165
$affectedCategoryIds = $this->getAffectedCategoryIds();
21652166
if (!$affectedCategoryIds) {
@@ -2340,6 +2341,7 @@ public function isDisabled()
23402341
public function getImage()
23412342
{
23422343
$this->getTypeInstance()->setImageFromChildProduct($this);
2344+
// phpstan:ignore
23432345
return parent::getImage();
23442346
}
23452347

@@ -2403,6 +2405,7 @@ public function reloadPriceInfo()
24032405
}
24042406
}
24052407

2408+
// phpcs:disable PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames
24062409
/**
24072410
* Return Data Object data in array format.
24082411
*
@@ -2411,6 +2414,7 @@ public function reloadPriceInfo()
24112414
*/
24122415
public function __toArray()
24132416
{
2417+
// phpcs:enable PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames
24142418
$data = $this->_data;
24152419
$hasToArray = function ($model) {
24162420
return is_object($model) && method_exists($model, '__toArray') && is_callable([$model, '__toArray']);

lib/internal/Magento/Framework/Model/AbstractExtensibleModel.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ protected function filterCustomAttributes($data)
127127

128128
/**
129129
* Initialize customAttributes based on existing data
130-
*
131-
* @return $this
132130
*/
133131
protected function initializeCustomAttributes()
134132
{

0 commit comments

Comments
 (0)