Skip to content

Commit 405b0ba

Browse files
committed
update test
1 parent 8361a89 commit 405b0ba

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

ext/intl/php_intl.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function datefmt_get_error_message(IntlDateFormatter $formatter): string {}
390390

391391
/* formatter */
392392

393-
function numfmt_create(string $locale, int $style, ?string $pattern = null): ?NumberFormatter {}
393+
function numfmt_create(string $locale, string|int $style, ?string $pattern = null): ?NumberFormatter {}
394394

395395
function numfmt_format(NumberFormatter $formatter, int|float $num, int $type = NumberFormatter::TYPE_DEFAULT): string|false {}
396396

ext/intl/php_intl_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/intl/tests/formatter_fail.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ Error: NumberFormatter object is already constructed in %s on line %d
109109

110110
Deprecated: NumberFormatter::__construct(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
111111

112-
Deprecated: NumberFormatter::__construct(): Passing null to parameter #2 ($style) of type int is deprecated in %s on line %d
112+
Deprecated: NumberFormatter::__construct(): Passing null to parameter #2 ($style) of type string|int is deprecated in %s on line %d
113113

114114
Deprecated: NumberFormatter::create(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
115115

116-
Deprecated: NumberFormatter::create(): Passing null to parameter #2 ($style) of type int is deprecated in %s on line %d
116+
Deprecated: NumberFormatter::create(): Passing null to parameter #2 ($style) of type string|int is deprecated in %s on line %d
117117

118118
Deprecated: numfmt_create(): Passing null to parameter #1 ($locale) of type string is deprecated in %s on line %d
119119

120-
Deprecated: numfmt_create(): Passing null to parameter #2 ($style) of type int is deprecated in %s on line %d
120+
Deprecated: numfmt_create(): Passing null to parameter #2 ($style) of type string|int is deprecated in %s on line %d
121121

122122
ValueError: NumberFormatter::__construct(): Argument #1 ($locale) "%s" is invalid in %s on line %d
123123
'U_ZERO_ERROR'

ext/intl/tests/gh8115.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Caught (8192): IntlRuleBasedBreakIterator::__construct(): Passing null to parame
3434
Caught (8192): IntlRuleBasedBreakIterator::__construct(): Passing null to parameter #2 ($compiled) of type bool is deprecated
3535
Caught (8192): Collator::__construct(): Passing null to parameter #1 ($locale) of type string is deprecated
3636
Caught (8192): NumberFormatter::__construct(): Passing null to parameter #1 ($locale) of type string is deprecated
37-
Caught (8192): NumberFormatter::__construct(): Passing null to parameter #2 ($style) of type int is deprecated
37+
Caught (8192): NumberFormatter::__construct(): Passing null to parameter #2 ($style) of type string|int is deprecated
3838
Caught (8192): MessageFormatter::__construct(): Passing null to parameter #1 ($locale) of type string is deprecated
3939
Caught (8192): MessageFormatter::__construct(): Passing null to parameter #2 ($pattern) of type string is deprecated
4040
Caught (8192): ResourceBundle::__construct(): Passing null to parameter #3 ($fallback) of type bool is deprecated

0 commit comments

Comments
 (0)