summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl_arginfo.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-02-09 14:18:18 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-02-09 14:36:41 +0100
commitf5768eaa2e7d75cafbe80054c657fcf61b9394e6 (patch)
treeb70c974c030b471fab5bc3f3b5a2c1c998c27d3b /ext/intl/php_intl_arginfo.h
parent186f9bab45bb5677a223400e803fa2bae2f79719 (diff)
downloadphp-git-f5768eaa2e7d75cafbe80054c657fcf61b9394e6.tar.gz
Make NumberFormatter ctor $pattern nullable
Whether the pattern is needed depends on the used style. If no pattern is needed, null is a more sensible value than an empty string. fixup
Diffstat (limited to 'ext/intl/php_intl_arginfo.h')
-rw-r--r--ext/intl/php_intl_arginfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/php_intl_arginfo.h b/ext/intl/php_intl_arginfo.h
index 85cf63e585..351662024e 100644
--- a/ext/intl/php_intl_arginfo.h
+++ b/ext/intl/php_intl_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 7600b5814e257cc334ec72fc0f4c73b6a84b2745 */
+ * Stub hash: fb91064c471d6bced3a6dad8beb56c92c9047e52 */
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_intlcal_create_instance, 0, 0, IntlCalendar, 1)
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, timezone, "null")
@@ -370,7 +370,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_numfmt_create, 0, 2, NumberFormatter, 1)
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, style, IS_LONG, 0)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"\"")
+ ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 1, "null")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_numfmt_format, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)