Skip to content

Commit b6fea36

Browse files
committed
Fix stubs/arginfo
1 parent 1e3509b commit b6fea36

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ext/date/php_date.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function date_isodate_set(DateTime $object, int $year, int $week, int $day = 1):
7373

7474
function date_timestamp_set(DateTime $object, int $timestamp): DateTime {}
7575

76-
function date_timestamp_get(DateTimeInterface $object): int {}
76+
function date_timestamp_get(DateTimeInterface $object): int|false {}
7777

7878
function timezone_open(string $timezone): DateTimeZone|false {}
7979

ext/date/php_date_arginfo.h

Lines changed: 4 additions & 2 deletions
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: a1b54f5aa27f583fb84953c1aa3f5d901ceb9f9d */
2+
* Stub hash: d334411c862c9140486ced1c7dffaebd8461a841 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, datetime, IS_STRING, 0)
@@ -151,7 +151,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_date_timestamp_set, 0, 2, DateTim
151151
ZEND_ARG_TYPE_INFO(0, timestamp, IS_LONG, 0)
152152
ZEND_END_ARG_INFO()
153153

154-
#define arginfo_date_timestamp_get arginfo_date_offset_get
154+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_date_timestamp_get, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
155+
ZEND_ARG_OBJ_INFO(0, object, DateTimeInterface, 0)
156+
ZEND_END_ARG_INFO()
155157

156158
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_timezone_open, 0, 1, DateTimeZone, MAY_BE_FALSE)
157159
ZEND_ARG_TYPE_INFO(0, timezone, IS_STRING, 0)

0 commit comments

Comments
 (0)