Skip to content

Commit 9b1beab

Browse files
committed
Fix aggregations use statements and return values
1 parent 9bc0af1 commit 9b1beab

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

app/code/Magento/Cms/Model/ResourceModel/Block/Grid/Collection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Magento\Cms\Model\ResourceModel\Block\Grid;
77

88
use Magento\Framework\Api\Search\SearchResultInterface;
9-
use Magento\Framework\Search\AggregationInterface;
9+
use Magento\Framework\Api\Search\AggregationInterface;
1010
use Magento\Cms\Model\ResourceModel\Block\Collection as BlockCollection;
1111

1212
/**
@@ -82,6 +82,7 @@ public function getAggregations()
8282
public function setAggregations($aggregations)
8383
{
8484
$this->aggregations = $aggregations;
85+
return $this;
8586
}
8687

8788
/**

app/code/Magento/Cms/Model/ResourceModel/Page/Grid/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public function getAggregations()
8383
public function setAggregations($aggregations)
8484
{
8585
$this->aggregations = $aggregations;
86+
return $this;
8687
}
8788

8889
/**

app/code/Magento/Sales/Model/ResourceModel/Grid/Collection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Magento\Sales\Model\ResourceModel\Grid;
77

88
use Magento\Framework\Api\Search\SearchResultInterface;
9-
use Magento\Framework\Search\AggregationInterface;
9+
use Magento\Framework\Api\Search\AggregationInterface;
1010
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
1111

1212
/**
@@ -78,6 +78,7 @@ public function getAggregations()
7878
public function setAggregations($aggregations)
7979
{
8080
$this->aggregations = $aggregations;
81+
return $this;
8182
}
8283

8384

0 commit comments

Comments
 (0)