Skip to content

Commit

Permalink
direct cast of string currency
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoberonNowoptics committed Nov 21, 2024
1 parent ec67f12 commit 596ee54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utility/MoneyUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected static function loadMoneyFormatter(Currency $currency): MoneyFormatter
throw new RuntimeException(
sprintf(
'Cannot format currency \'%s\'. Only ISO currencies and Bitcoin are allowed.',
$currency
(string) $currency
)
);
}
Expand Down

0 comments on commit 596ee54

Please sign in to comment.