From b17957eaac42efb542ceab6631894c930c0658ae Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 12 Aug 2019 14:24:54 +0200 Subject: [PATCH] Add missing parameters to __set_state() methods Closes GH-4526. --- ext/date/php_date.stub.php | 4 ++-- ext/date/php_date_arginfo.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/date/php_date.stub.php b/ext/date/php_date.stub.php index 667cbc1b91..3d7af39cd2 100644 --- a/ext/date/php_date.stub.php +++ b/ext/date/php_date.stub.php @@ -202,7 +202,7 @@ class DateTimeImmutable implements DateTimeInterface { public function __construct(string $time, ?DateTimeZone $timezone = null); /** @return DateTimeZone */ - public static function __set_state(); + public static function __set_state(array $array); /** @return DateTimeImmutable */ public static function createFromMutable(DateTime $object); @@ -257,7 +257,7 @@ class DateTimeZone { public function __wakeup(); /** @return DateTimeZone */ - public static function __set_state(); + public static function __set_state(array $array); } class DateInterval { diff --git a/ext/date/php_date_arginfo.h b/ext/date/php_date_arginfo.h index 841ff28a6e..867b058d37 100644 --- a/ext/date/php_date_arginfo.h +++ b/ext/date/php_date_arginfo.h @@ -284,7 +284,7 @@ ZEND_END_ARG_INFO() #define arginfo_DateTimeImmutable___construct arginfo_date_create -#define arginfo_DateTimeImmutable___set_state arginfo_date_get_last_errors +#define arginfo_DateTimeImmutable___set_state arginfo_DateTime___set_state ZEND_BEGIN_ARG_INFO_EX(arginfo_DateTimeImmutable_createFromMutable, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, object, DateTime, 0) @@ -329,7 +329,7 @@ ZEND_END_ARG_INFO() #define arginfo_DateTimeZone___wakeup arginfo_date_get_last_errors -#define arginfo_DateTimeZone___set_state arginfo_date_get_last_errors +#define arginfo_DateTimeZone___set_state arginfo_DateTime___set_state ZEND_BEGIN_ARG_INFO_EX(arginfo_DateInterval___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, interval_spec, IS_STRING, 0) -- 2.40.0