Skip to content

Commit 75deccc

Browse files
ENGCOM-3055: type casted $qty to float in \Magento\Catalog\Model\Product::setQty() #18149
- Merge Pull Request #18149 from jayankaghosh/magento2:issue-18094 - Merged commits: 1. 76676ce 2. 2ad1031
2 parents 4b0750c + 2ad1031 commit 75deccc

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)