Skip to content

Commit ca7738a

Browse files
authored
Merge pull request #19 from ivanhrytsaim/13311-Magento248-Php84-Compatibility
13311-Magento248-Php84-Compatibility
2 parents 559fe78 + bf363c2 commit ca7738a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Model/Rule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public function __construct(
5555
Context $context,
5656
Registry $registry,
5757
StoreManagerInterface $storeManager,
58-
AbstractResource $resource = null,
59-
AbstractDb $resourceCollection = null,
58+
?AbstractResource $resource = null,
59+
?AbstractDb $resourceCollection = null,
6060
array $data = []
6161
)
6262
{

Ui/DataProvider/Rule/Rule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getSearchCriteria()
4545
return null;
4646
}
4747

48-
public function setSearchCriteria(SearchCriteriaInterface $searchCriteria = null)
48+
public function setSearchCriteria(?SearchCriteriaInterface $searchCriteria = null)
4949
{
5050
return $this;
5151
}
@@ -60,7 +60,7 @@ public function setTotalCount($totalCount)
6060
return $this;
6161
}
6262

63-
public function setItems(array $items = null)
63+
public function setItems(?array $items = null)
6464
{
6565
return $this;
6666
}

0 commit comments

Comments
 (0)