Skip to content

Commit bcade51

Browse files
authored
Merge pull request #118 from Muchwat/patch-1
Update helpers.php
2 parents d3f8c85 + 0c6afd7 commit bcade51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use Akaunting\Money\Money;
55

66
if (! function_exists('money')) {
7-
function money(mixed $amount, string $currency = null, bool $convert = null): Money
7+
function money(mixed $amount, ?string $currency = null, ?bool $convert = null): Money
88
{
99
if (is_null($currency)) {
1010
/** @var string $currency */
@@ -21,7 +21,7 @@ function money(mixed $amount, string $currency = null, bool $convert = null): Mo
2121
}
2222

2323
if (! function_exists('currency')) {
24-
function currency(string $currency = null): Currency
24+
function currency(?string $currency = null): Currency
2525
{
2626
if (is_null($currency)) {
2727
/** @var string $currency */

0 commit comments

Comments
 (0)