From ec0d6827e205463ff60bc354b3b1bc244540f140 Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 22 Nov 2024 12:46:46 +0100 Subject: [PATCH] feat: fix deprecation for PHP 8.4 (#187) Co-authored-by: Christopher Georg --- src/Formatter/MoneyFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Formatter/MoneyFormatter.php b/src/Formatter/MoneyFormatter.php index 1651c9c0..fcd94d51 100644 --- a/src/Formatter/MoneyFormatter.php +++ b/src/Formatter/MoneyFormatter.php @@ -107,7 +107,7 @@ public function getCurrency(Money $money): Currency return $money->getCurrency(); } - protected function getDefaultNumberFormatter(string $currencyCode, string $locale = null): \NumberFormatter + protected function getDefaultNumberFormatter(string $currencyCode, ?string $locale = null): \NumberFormatter { if (is_null($locale)) { $locale = \Locale::getDefault();