Skip to content

Commit 873e777

Browse files
ENGCOM-3230: [BACKPORT] type casted $qty to float in \Magento\Catalog\Model\Produc… #18424
- Merge Pull Request #18424 from experius/magento2:experius-2.2-patch-backport-18149 - Merged commits: 1. 3fc107a 2. fa52936
2 parents fdd599c + fa52936 commit 873e777

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)