From 9ea102297d93cb35c8305385792e413437b3fdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 24 Mar 2023 23:09:45 +0100 Subject: [PATCH] change default rate to a float value --- src/Currency.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Currency.php b/src/Currency.php index 9ae7b3f..c2db2a4 100644 --- a/src/Currency.php +++ b/src/Currency.php @@ -60,7 +60,7 @@ class Currency implements Arrayable, JsonSerializable ) { $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;