Skip to content

Commit a8289c9

Browse files
ENGCOM-1950: [Backport 2.1] Wishlist: Remove unnecessary parameter from invoking toHtml() method #16024
- Merge Pull Request #16024 from rogyar/magento2:2.1-remove-extra-param-tohtml - Merged commits: 1. f794719 2. 66e0058
2 parents 4d1b832 + 66e0058 commit a8289c9

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Wishlist/view/frontend/templates/item

1 file changed

+1
-1
lines changed

app/code/Magento/Wishlist/view/frontend/templates/item/list.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $columns = $block->getColumns();
2020
<?php /* @escapeNotVerified */ echo($iterator++ == 1) ? '<li data-row="product-item" class="product-item" id="item_' . $item->getId() . '">' : '</li><li class="product-item" id="item_' . $item->getId() . '">' ?>
2121
<div class="product-item-info">
2222
<?php foreach ($columns as $column): ?>
23-
<?php $column->setItem($item); echo $column->toHtml($item);?>
23+
<?= $column->setItem($item)->toHtml() ?>
2424
<?php endforeach; ?>
2525
</div>
2626
<?php echo($iterator == count($block->getItems())+1) ? '</li>' : '' ?>

0 commit comments

Comments
 (0)