Skip to content

Commit b13b0ec

Browse files
committed
#23440 update identical condition
1 parent 10d5f73 commit b13b0ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Sales/Model/Order/CreditmemoFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected function canRefundItem($item, $qtys = [], $invoiceQtysRefundLimits = [
147147
if ($item->isDummy()) {
148148
if ($item->getHasChildren()) {
149149
foreach ($item->getChildrenItems() as $child) {
150-
if (empty($qtys) || (count(array_unique($qtys)) === 1 && end($qtys) == 0)) {
150+
if (empty($qtys) || (count(array_unique($qtys)) === 1 && (int)end($qtys) === 0)) {
151151
if ($this->canRefundNoDummyItem($child, $invoiceQtysRefundLimits)) {
152152
return true;
153153
}

0 commit comments

Comments
 (0)