Skip to content

Commit 5039999

Browse files
committed
More precise type information for datefmt_format()
1 parent 686d6c3 commit 5039999

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ext/intl/dateformat/dateformat.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function setLenient(bool $lenient) {}
9797
public function isLenient() {}
9898

9999
/**
100-
* @param object|array|string|int|float $value
100+
* @param IntlCalendar|DateTimeInterface|array|string|int|float $value
101101
* @return string|false
102102
* @alias datefmt_format
103103
*/

ext/intl/dateformat/dateformat_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 6e7935cd23cd9bba625cf65d08d8e3796f938d74 */
2+
* Stub hash: 3a62c7f1ca8cddeb1cde1c0a9a889b5b841bc7cc */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlDateFormatter___construct, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)

ext/intl/php_intl.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function datefmt_set_lenient(IntlDateFormatter $df, bool $lenient): void {}
183183

184184
function datefmt_is_lenient(IntlDateFormatter $df): bool {}
185185

186-
/** @param object|array|string|int|float $value */
186+
/** @param IntlCalendar|DateTimeInterface|array|string|int|float $value */
187187
function datefmt_format(IntlDateFormatter $df, $value): string|false {}
188188

189189
/**

ext/intl/php_intl_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 943baf02eee2f720a45106e379534b3d4adc3072 */
2+
* Stub hash: f9cf4cbb4f8f827689042cfa0524bae487ed6aaf */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_intlcal_create_instance, 0, 0, IntlCalendar, 1)
55
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, timeZone, "null")

0 commit comments

Comments
 (0)