You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brick\Math\Exception\NumberFormatException: The given value "USD 200.00" does not represent a valid number.
/app/vendor/brick/math/src/Exception/NumberFormatException.php:14
/app/vendor/brick/math/src/BigNumber.php:118
/app/vendor/brick/math/src/BigNumber.php:61
/app/vendor/brick/math/src/BigRational.php:233
/app/vendor/brick/money/src/Money.php:405
Any ideas or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
I read the documentation and it did not state that you could multiply with Money objects.
Also, the signature for the multiplyBy function does not contain Money or AbstractMoney as its parameters.
When debugging, if you pass in a Money object, it is accepted by the function as a string representation, which causes the error.
I will be closing this because it is not an issue.
PHP Fatal error: Uncaught TypeError: Brick\Money\Money::multipliedBy(): Argument #1 ($that) must be of type Brick\Math\BigNumber|string|int|float, Brick\Money\Money given
Version: 0.9.0
I ran a phpunit test on the following code.
The above code throws an exception.
Any ideas or am I doing something wrong?
The text was updated successfully, but these errors were encountered: