diff --git a/app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab/Inventory.php b/app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab/Inventory.php index 824d0ae37ea56..f73c3a11857dd 100644 --- a/app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab/Inventory.php +++ b/app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab/Inventory.php @@ -104,17 +104,17 @@ public function getDefaultConfigValue($field) /** * Returns min_sale_qty configuration for the ALL Customer Group * - * @return int + * @return float */ public function getDefaultMinSaleQty() { $default = $this->stockConfiguration->getDefaultConfigValue('min_sale_qty'); if (!is_numeric($default)) { $default = $this->serializer->unserialize($default); - $default = isset($default[GroupInterface::CUST_GROUP_ALL]) ? $default[GroupInterface::CUST_GROUP_ALL] : 1; + $default = $default[GroupInterface::CUST_GROUP_ALL] ?? 1; } - return (int) $default; + return (float) $default; } /**