Skip to content

Commit 9ea1022

Browse files
authored
change default rate to a float value
1 parent e1ae6f3 commit 9ea1022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Currency.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(
6060
) {
6161
$this->code = $code ?? $this->code ?? '';
6262
$this->name = $name ?? $this->name ?? '';
63-
$this->rate = $rate ?? $this->rate ?? 1;
63+
$this->rate = $rate ?? $this->rate ?? 1.0;
6464
$this->prefix = $prefix ?? $this->prefix ?? '';
6565
$this->suffix = $suffix ?? $this->suffix ?? '';
6666
$this->mathDecimals = $mathDecimals ?? $this->mathDecimals ?? 2;

0 commit comments

Comments
 (0)