Skip to content

Commit 80472cb

Browse files
committed
fix deprecated warning ::of
1 parent 1a2ca25 commit 80472cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MoneyParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static function parse(
3030

3131
if (is_float($value)) {
3232
// @phpstan-ignore-next-line
33-
return Money::of($value, $currency, null, config('money.rounding_mode', RoundingMode::HALF_UP));
33+
return Money::of((string) $value, $currency, null, config('money.rounding_mode', RoundingMode::HALF_UP));
3434
}
3535

3636
if (is_string($value)) {

0 commit comments

Comments
 (0)