summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-10-09 11:04:49 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-10-09 11:05:42 +0200
commit503999910b186d11345a0277d1d34d4b30ed4e49 (patch)
treee25e1db21d7018a22577c1e7f4946f07d166ca10
parent686d6c3dd4f6de64de921ba3b772c2d110d88a3e (diff)
downloadphp-git-503999910b186d11345a0277d1d34d4b30ed4e49.tar.gz
More precise type information for datefmt_format()
-rw-r--r--ext/intl/dateformat/dateformat.stub.php2
-rw-r--r--ext/intl/dateformat/dateformat_arginfo.h2
-rw-r--r--ext/intl/php_intl.stub.php2
-rw-r--r--ext/intl/php_intl_arginfo.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/ext/intl/dateformat/dateformat.stub.php b/ext/intl/dateformat/dateformat.stub.php
index 53cda18560..bf2136eb61 100644
--- a/ext/intl/dateformat/dateformat.stub.php
+++ b/ext/intl/dateformat/dateformat.stub.php
@@ -97,7 +97,7 @@ class IntlDateFormatter
public function isLenient() {}
/**
- * @param object|array|string|int|float $value
+ * @param IntlCalendar|DateTimeInterface|array|string|int|float $value
* @return string|false
* @alias datefmt_format
*/
diff --git a/ext/intl/dateformat/dateformat_arginfo.h b/ext/intl/dateformat/dateformat_arginfo.h
index 7a468d4fda..80e71abc09 100644
--- a/ext/intl/dateformat/dateformat_arginfo.h
+++ b/ext/intl/dateformat/dateformat_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 6e7935cd23cd9bba625cf65d08d8e3796f938d74 */
+ * Stub hash: 3a62c7f1ca8cddeb1cde1c0a9a889b5b841bc7cc */
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlDateFormatter___construct, 0, 0, 3)
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)
diff --git a/ext/intl/php_intl.stub.php b/ext/intl/php_intl.stub.php
index 67bd27be92..08f0a45a28 100644
--- a/ext/intl/php_intl.stub.php
+++ b/ext/intl/php_intl.stub.php
@@ -183,7 +183,7 @@ function datefmt_set_lenient(IntlDateFormatter $df, bool $lenient): void {}
function datefmt_is_lenient(IntlDateFormatter $df): bool {}
-/** @param object|array|string|int|float $value */
+/** @param IntlCalendar|DateTimeInterface|array|string|int|float $value */
function datefmt_format(IntlDateFormatter $df, $value): string|false {}
/**
diff --git a/ext/intl/php_intl_arginfo.h b/ext/intl/php_intl_arginfo.h
index 1b1c0ea84d..a319532c53 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: 943baf02eee2f720a45106e379534b3d4adc3072 */
+ * Stub hash: f9cf4cbb4f8f827689042cfa0524bae487ed6aaf */
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")