Skip to content

Commit

Permalink
Change return type to float
Browse files Browse the repository at this point in the history
  • Loading branch information
pmclain committed Jan 4, 2019
1 parent e945ba0 commit b3a4058
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit b3a4058

Please sign in to comment.