Skip to content

Commit 777c9a9

Browse files
authored
Fix $attributes default value
1 parent fb9e645 commit 777c9a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ private function getLabel(Product $product, string $imageType): string
131131
*
132132
* @param Product $product
133133
* @param string $imageId
134-
* @param array|null $attributes
134+
* @param array $attributes
135135
* @return ImageBlock
136136
*/
137-
public function create(Product $product, string $imageId, array $attributes = null): ImageBlock
137+
public function create(Product $product, string $imageId, array $attributes = []): ImageBlock
138138
{
139139
$viewImageConfig = $this->presentationConfig->getViewConfig()->getMediaAttributes(
140140
'Magento_Catalog',

0 commit comments

Comments
 (0)