Skip to content

Commit

Permalink
fixed psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jul 10, 2023
1 parent e767336 commit 104d41a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
function money(mixed $amount, string $currency = null, bool $convert = false): Money
{
if (is_null($currency)) {
$currency = (string) config('money.defaults.currency');
/** @var string $currency */
$currency = config('money.defaults.currency');
}

return new Money($amount, currency($currency), $convert);
Expand Down

0 comments on commit 104d41a

Please sign in to comment.