Skip to content

Commit b56c13a

Browse files
committed
Fixed di:compilation process on Magento 2.2
1 parent 7a75aac commit b56c13a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model/ResourceModel/Data/Grid/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Collection extends DataCollection implements SearchResultInterface
2626
* @param string $eventObject
2727
* @param string $resourceModel
2828
* @param string $model
29-
* @param string|null $connection
29+
* @param \Magento\Framework\DB\Adapter\AdapterInterface|null $connection
3030
* @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
3131
*
3232
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
@@ -42,7 +42,7 @@ public function __construct(
4242
$eventObject,
4343
$resourceModel,
4444
$model = 'Magento\Framework\View\Element\UiComponent\DataProvider\Document',
45-
$connection = null,
45+
\Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
4646
\Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null
4747
) {
4848
parent::__construct(

0 commit comments

Comments
 (0)