Skip to content

Commit c20f04d

Browse files
committed
ACP2E-1053: Generate coupon codes ignores Code Length
- Fixed the functional test failure.
1 parent 2849bfb commit c20f04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/SalesRule/Model/Quote/ValidateCouponLengthWithQuantity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ public function validateCouponCodeLengthWithQuantity(array $couponCodeDataArray)
2525
{
2626
$this->setData($couponCodeDataArray);
2727
$this->increaseLength();
28-
return $this->getLength();
28+
return (int)$this->getLength();
2929
}
3030
}

0 commit comments

Comments
 (0)