Skip to content

Commit 6fc1905

Browse files
authored
Strict comparison instead of is_null usage
1 parent eff3e1d commit 6fc1905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function create(Product $product, string $imageId, array $attributes = nu
160160
);
161161
}
162162

163-
$attributes = (is_null($attributes)) ? [] : $attributes;
163+
$attributes = $attributes === null ? [] : $attributes;
164164
$data = [
165165
'data' => [
166166
'template' => 'Magento_Catalog::product/image_with_borders.phtml',

0 commit comments

Comments
 (0)