Skip to content

Commit

Permalink
change default rate to a float value
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Mar 24, 2023
1 parent e1ae6f3 commit 9ea1022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function __construct(
) {
$this->code = $code ?? $this->code ?? '';
$this->name = $name ?? $this->name ?? '';
$this->rate = $rate ?? $this->rate ?? 1;
$this->rate = $rate ?? $this->rate ?? 1.0;
$this->prefix = $prefix ?? $this->prefix ?? '';
$this->suffix = $suffix ?? $this->suffix ?? '';
$this->mathDecimals = $mathDecimals ?? $this->mathDecimals ?? 2;
Expand Down

0 comments on commit 9ea1022

Please sign in to comment.