Skip to content

Commit c87b0de

Browse files
author
Valeriy Nayda
committed
MAGETWO-42200: HHVM Incompatibility Issues
-- Fixed: An iterator cannot be used with foreach by reference
1 parent 79895c4 commit c87b0de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Block/Product/View/Gallery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getGalleryImages()
2525
$product = $this->getProduct();
2626
$images = $product->getMediaGalleryImages();
2727
if ($images instanceof \Magento\Framework\Data\Collection) {
28-
foreach ($images as &$image) {
28+
foreach ($images as $image) {
2929
/* @var \Magento\Framework\DataObject $image */
3030
$image->setData(
3131
'small_image_url',

0 commit comments

Comments
 (0)