Skip to content

Commit 46a2c6a

Browse files
committed
Fix return type of DateTimeImmutable::__set_state()
1 parent 9cec093 commit 46a2c6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/date/php_date.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public function __construct(string $datetime = "now", ?DateTimeZone $timezone =
251251
/** @return void */
252252
public function __wakeup() {}
253253

254-
/** @return DateTimeZone */
254+
/** @return DateTimeImmutable */
255255
public static function __set_state(array $array) {}
256256

257257
/**

ext/date/php_date_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: 7b23a03d3c4941fb9a614de62d80fa5b0e11d14b */
2+
* Stub hash: 339c2c91f38eeaafac6134ac04573243069502f5 */
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)

0 commit comments

Comments
 (0)