Skip to content

Commit 8637a25

Browse files
ENGCOM-5434: Fix $attributes default value #21064
- Merge Pull Request #21064 from jlnarvaez/magento2:jlnarvaez-patch-attributesdefaultvalue - Merged commits: 1. 777c9a9 2. c8f78ff 3. eff3e1d 4. 6fc1905 5. a73ce34 6. 6adf548
2 parents 9fa9149 + 6adf548 commit 8637a25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Catalog/Block/Product/ImageFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ public function create(Product $product, string $imageId, array $attributes = nu
160160
);
161161
}
162162

163+
$attributes = $attributes === null ? [] : $attributes;
164+
163165
$data = [
164166
'data' => [
165167
'template' => 'Magento_Catalog::product/image_with_borders.phtml',

0 commit comments

Comments
 (0)