Skip to content

Commit

Permalink
minor #3894 fix NumberFormatter::TYPE_CURRENCY being deprecated in …
Browse files Browse the repository at this point in the history
…PHP 8.3 (mbolli)

This PR was merged into the 3.x branch.

Discussion
----------

fix `NumberFormatter::TYPE_CURRENCY` being deprecated in PHP 8.3

It was never used anyway (by Twig and by PHP), so removing it should not have any side-effects.

Commits
-------

223ba6e fix `NumberFormatter::TYPE_CURRENCY` being deprecated in PHP 8.3
  • Loading branch information
fabpot committed Oct 20, 2023
2 parents 9064783 + 223ba6e commit e4780e9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion extra/intl-extra/IntlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ private static function availableDateFormats(): array
'int32' => \NumberFormatter::TYPE_INT32,
'int64' => \NumberFormatter::TYPE_INT64,
'double' => \NumberFormatter::TYPE_DOUBLE,
'currency' => \NumberFormatter::TYPE_CURRENCY,
];
private const NUMBER_STYLES = [
'decimal' => \NumberFormatter::DECIMAL,
Expand Down

0 comments on commit e4780e9

Please sign in to comment.