Skip to content

Commit 104d41a

Browse files
committed
fixed psalm
1 parent e767336 commit 104d41a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
function money(mixed $amount, string $currency = null, bool $convert = false): Money
88
{
99
if (is_null($currency)) {
10-
$currency = (string) config('money.defaults.currency');
10+
/** @var string $currency */
11+
$currency = config('money.defaults.currency');
1112
}
1213

1314
return new Money($amount, currency($currency), $convert);

0 commit comments

Comments
 (0)