Skip to content

Commit

Permalink
Merge pull request #13 from hsoberon/bugfix/psalm-direct-string-cast
Browse files Browse the repository at this point in the history
Fix a ImplicitToStringCast of string currency
  • Loading branch information
steinkel authored Nov 21, 2024
2 parents 197ea5a + 9e52542 commit 59d75dc
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 59d75dc

Please sign in to comment.