Skip to content

Commit e12cf31

Browse files
Update ext/intl/formatter/formatter_format.c
Co-authored-by: Gina Peter Banyard <[email protected]>
1 parent db619f1 commit e12cf31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/intl/formatter/formatter_format.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ PHP_FUNCTION( numfmt_format )
9999
bool failed = true;
100100
int64_t value = zval_try_get_long(number, &failed);
101101
if (failed) {
102-
zend_argument_value_error(object ? 1 : 2, "must be numeric");
102+
zend_argument_type_error(object ? 1 : 2, "must be of type int when argument #2 ($format) is NumberFormatter::TYPE_INT64");
103103
RETURN_THROWS();
104104
}
105105
formatted_len = unum_formatInt64(FORMATTER_OBJECT(nfo), value, formatted, formatted_len, NULL, &INTL_DATA_ERROR_CODE(nfo));

0 commit comments

Comments
 (0)