Skip to content

Commit c34f83c

Browse files
committed
Changed usage of sizeof to count to remove usage of discouraged sizeof function in getAttributeRawValue
1 parent 7b0e528 commit c34f83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/ResourceModel/AbstractResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ public function getAttributeRawValue($entityId, $attribute, $store)
617617
}
618618
}
619619

620-
if (is_array($attributesData) && sizeof($attributesData) == 1) {
620+
if (is_array($attributesData) && count($attributesData) == 1) {
621621
$attributesData = array_shift($attributesData);
622622
}
623623

0 commit comments

Comments
 (0)