Skip to content

Commit

Permalink
feat: fix deprecation for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Nov 22, 2024
1 parent 9ca2636 commit 01cfc6e
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 01cfc6e

Please sign in to comment.