Skip to content

Commit 237f531

Browse files
author
Stanislav Idolov
authored
ENGCOM-3230: [BACKPORT] type casted $qty to float in \Magento\Catalog\Model\Produc… #18424
2 parents 47253e8 + 873e777 commit 237f531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ public function setQty($qty)
985985
*/
986986
public function getQty()
987987
{
988-
return $this->getData('qty');
988+
return (float)$this->getData('qty');
989989
}
990990

991991
/**

0 commit comments

Comments
 (0)