Skip to content

Commit e2c42e6

Browse files
committed
Fix out-of-scope PHPStan error
1 parent d267e3b commit e2c42e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Category/DataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ private function convertValues($category, $categoryData): array
623623

624624
$categoryData[$attributeCode][0]['url'] = $this->categoryImage->getUrl($category, $attributeCode);
625625

626-
$categoryData[$attributeCode][0]['size'] = isset($stat) ? $stat['size'] : 0;
626+
$categoryData[$attributeCode][0]['size'] = $stat['size'];
627627
$categoryData[$attributeCode][0]['type'] = $mime;
628628
}
629629
}

0 commit comments

Comments
 (0)