1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 11:24:03 +00:00

change default rate to a float value

This commit is contained in:
Samuel Štancl 2023-03-24 23:09:45 +01:00 committed by GitHub
parent e1ae6f3fcb
commit 9ea102297d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class Currency implements Arrayable, JsonSerializable
) { ) {
$this->code = $code ?? $this->code ?? ''; $this->code = $code ?? $this->code ?? '';
$this->name = $name ?? $this->name ?? ''; $this->name = $name ?? $this->name ?? '';
$this->rate = $rate ?? $this->rate ?? 1; $this->rate = $rate ?? $this->rate ?? 1.0;
$this->prefix = $prefix ?? $this->prefix ?? ''; $this->prefix = $prefix ?? $this->prefix ?? '';
$this->suffix = $suffix ?? $this->suffix ?? ''; $this->suffix = $suffix ?? $this->suffix ?? '';
$this->mathDecimals = $mathDecimals ?? $this->mathDecimals ?? 2; $this->mathDecimals = $mathDecimals ?? $this->mathDecimals ?? 2;