Skip to content

Commit e8b5bcf

Browse files
Intl: IntlListFormatter - update exception message (#19282)
1 parent 4c576a2 commit e8b5bcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/intl/listformatter/listformatter_class.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ PHP_METHOD(IntlListFormatter, __construct)
7272
}
7373

7474
if (locale_len > INTL_MAX_LOCALE_LEN) {
75-
zend_argument_value_error(1, "Locale string too long, should be no longer than %d characters", INTL_MAX_LOCALE_LEN);
75+
zend_argument_value_error(1, "must be less than or equal to %d characters", INTL_MAX_LOCALE_LEN);
7676
RETURN_THROWS();
7777
}
7878

ext/intl/tests/listformatter/listformatter_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ try {
3333
?>
3434
--EXPECT--
3535
IntlListFormatter::__construct(): Argument #1 ($locale) "f" is invalid
36-
IntlListFormatter::__construct(): Argument #1 ($locale) Locale string too long, should be no longer than 156 characters
36+
IntlListFormatter::__construct(): Argument #1 ($locale) must be less than or equal to 156 characters
3737
Object of class stdClass could not be converted to string
3838
Object of class stdClass could not be converted to string

0 commit comments

Comments
 (0)