Skip to content

Commit 2620c36

Browse files
author
Stanislav Idolov
authored
ENGCOM-3055: type casted $qty to float in \Magento\Catalog\Model\Product::setQty() #18149
2 parents 3c1f51e + 75deccc commit 2620c36

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
@@ -976,7 +976,7 @@ public function setQty($qty)
976976
*/
977977
public function getQty()
978978
{
979-
return $this->getData('qty');
979+
return (float)$this->getData('qty');
980980
}
981981

982982
/**

0 commit comments

Comments
 (0)