Skip to content

Commit af9f547

Browse files
Bindu.VBindu.V
authored andcommitted
35972 fix static test failure
1 parent 0f6dde0 commit af9f547

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ShipmentFactory
3838
protected $instanceName;
3939

4040
/**
41-
* Serializer
41+
* Serializer data
4242
*
4343
* @var Json
4444
*/
@@ -165,7 +165,7 @@ private function validateItem(\Magento\Sales\Model\Order\Item $orderItem, array
165165

166166
// Remove from shipment items without qty or with qty=0
167167
if (!$orderItem->isDummy(true)
168-
&& (!isset($items[$orderItem->getId()]) || (int) $items[$orderItem->getId()] <= 0)
168+
&& (!isset($items[$orderItem->getId()]) || (float) $items[$orderItem->getId()] <= 0)
169169
) {
170170
return false;
171171
}

0 commit comments

Comments
 (0)