From 9e52542e61d3f36842807e818a0a267d44bfd11b Mon Sep 17 00:00:00 2001 From: Hernan Soberon Date: Thu, 21 Nov 2024 07:08:15 -0500 Subject: [PATCH] fix an error from psalm string direct casting --- src/Utility/MoneyUtil.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utility/MoneyUtil.php b/src/Utility/MoneyUtil.php index eca7137..498d955 100644 --- a/src/Utility/MoneyUtil.php +++ b/src/Utility/MoneyUtil.php @@ -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 ) ); }