Skip to content

Commit b98415c

Browse files
author
al.kravchuk
committed
Maintenance.
- add missed property; - add variable annotation;
1 parent 70c5c51 commit b98415c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/code/Magento/Catalog/CustomerData/CompareProducts.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ class CompareProducts implements SectionSourceInterface
1919
*/
2020
protected $productUrl;
2121

22+
/**
23+
* @var \Magento\Catalog\Helper\Output
24+
*/
25+
private $outputHelper;
26+
2227
/**
2328
* @param \Magento\Catalog\Helper\Product\Compare $helper
2429
* @param \Magento\Catalog\Model\Product\Url $productUrl
@@ -54,6 +59,7 @@ public function getSectionData()
5459
protected function getItems()
5560
{
5661
$items = [];
62+
/** @var \Magento\Catalog\Model\Product $item */
5763
foreach ($this->helper->getItemCollection() as $item) {
5864
$items[] = [
5965
'id' => $item->getId(),

0 commit comments

Comments
 (0)