Skip to content

Commit

Permalink
Update Currency.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Dec 31, 2021
1 parent d71ca90 commit cf568bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/currencies/src/Models/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function countries(): HasMany
return $this->hasMany(Country::class);
}

public function format(int $number, bool $shouldConvert = false): string
public function format(float $number, bool $shouldConvert = false): string
{
return (new Money\Money(
$number,
Expand Down

0 comments on commit cf568bf

Please sign in to comment.