Skip to content

Commit c099172

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-96242: High Database Load for Sales Rule Validation
1 parent 43d521d commit c099172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ public function setValidationFilter(
190190
* Get rules ids related to coupon code
191191
*
192192
* @param string $couponCode
193-
* @return array|null
193+
* @return array
194194
*/
195-
private function getCouponRelatedRuleIds(string $couponCode): ?array
195+
private function getCouponRelatedRuleIds(string $couponCode): array
196196
{
197197
$connection = $this->getConnection();
198198
$select = $connection->select()->from(

0 commit comments

Comments
 (0)