Skip to content

Commit

Permalink
feat: fix deprecation for PHP 8.4 (#187)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Georg <christopher.georg@sr-travel.de>
  • Loading branch information
Chris53897 and Chris8934 authored Nov 22, 2024
1 parent 9ca2636 commit ec0d682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formatter/MoneyFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ec0d682

Please sign in to comment.