mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
numberic string as multiplier
This commit is contained in:
@@ -132,8 +132,10 @@ class Currency
|
||||
|
||||
/**
|
||||
* Multiply by a multiplier.
|
||||
*
|
||||
* @param float|int|numeric-string $multiplier
|
||||
*/
|
||||
public function multiply(float|int $multiplier): self
|
||||
public function multiply(float|int|string $multiplier): self
|
||||
{
|
||||
$amount = CalculatorUtil::multiply(
|
||||
$this->getAmountAsString(),
|
||||
@@ -145,8 +147,10 @@ class Currency
|
||||
|
||||
/**
|
||||
* Divide by a divider.
|
||||
*
|
||||
* @param float|int|numeric-string $divider
|
||||
*/
|
||||
public function divide(float|int $divider): self
|
||||
public function divide(float|int|string $divider): self
|
||||
{
|
||||
$amount = CalculatorUtil::divide(
|
||||
$this->getAmountAsString(),
|
||||
|
||||
Reference in New Issue
Block a user