Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit b3a4058

Browse files
committed
Change return type to float
1 parent e945ba0 commit b3a4058

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab/Inventory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,17 @@ public function getDefaultConfigValue($field)
104104
/**
105105
* Returns min_sale_qty configuration for the ALL Customer Group
106106
*
107-
* @return int
107+
* @return float
108108
*/
109109
public function getDefaultMinSaleQty()
110110
{
111111
$default = $this->stockConfiguration->getDefaultConfigValue('min_sale_qty');
112112
if (!is_numeric($default)) {
113113
$default = $this->serializer->unserialize($default);
114-
$default = isset($default[GroupInterface::CUST_GROUP_ALL]) ? $default[GroupInterface::CUST_GROUP_ALL] : 1;
114+
$default = $default[GroupInterface::CUST_GROUP_ALL] ?? 1;
115115
}
116116

117-
return (int) $default;
117+
return (float) $default;
118118
}
119119

120120
/**

0 commit comments

Comments
 (0)