Skip to content

Commit d0b11ec

Browse files
stofisfedorov
authored andcommitted
Add NumberFormatter::DECIMAL as a valid styles in NumberFormatter::create
The list of styles supported in `NumberFormatter::create` is the same than in the constructor of `NumberFormatter` but this value was missing.
1 parent 4adc304 commit d0b11ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intl/intl.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ public function __construct(
977977
#[TentativeType]
978978
public static function create(
979979
#[LanguageAware(['8.0' => 'string'], default: '')] $locale,
980-
#[LanguageAware(['8.0' => 'int'], default: '')] #[EV([NumberFormatter::PATTERN_DECIMAL,
980+
#[LanguageAware(['8.0' => 'int'], default: '')] #[EV([NumberFormatter::DECIMAL, NumberFormatter::PATTERN_DECIMAL,
981981
NumberFormatter::PATTERN_RULEBASED, NumberFormatter::CURRENCY, NumberFormatter::PERCENT,
982982
NumberFormatter::SCIENTIFIC, NumberFormatter::SPELLOUT, NumberFormatter::ORDINAL,
983983
NumberFormatter::DURATION, NumberFormatter::PATTERN_RULEBASED, NumberFormatter::CURRENCY_ACCOUNTING,

0 commit comments

Comments
 (0)