]> granicus.if.org Git - php/commitdiff
Add missing parameters to __set_state() methods
authorKyle <kylekatarnls@users.noreply.github.com>
Mon, 12 Aug 2019 12:24:54 +0000 (14:24 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 12 Aug 2019 13:20:23 +0000 (15:20 +0200)
Closes GH-4526.

ext/date/php_date.stub.php
ext/date/php_date_arginfo.h

index 667cbc1b91fa45408f2bca8dd76da18b5e3adf96..3d7af39cd295852b050460c3c5f527720a1784f9 100644 (file)
@@ -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 {
index 841ff28a6e05cad5834ab73b5e5bfac032bc4bad..867b058d37dc4c6e49bc4c25bd34dd8828354cdf 100644 (file)
@@ -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)