We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e767336 commit 104d41aCopy full SHA for 104d41a
src/helpers.php
@@ -7,7 +7,8 @@
7
function money(mixed $amount, string $currency = null, bool $convert = false): Money
8
{
9
if (is_null($currency)) {
10
- $currency = (string) config('money.defaults.currency');
+ /** @var string $currency */
11
+ $currency = config('money.defaults.currency');
12
}
13
14
return new Money($amount, currency($currency), $convert);
0 commit comments