Skip to content

Commit

Permalink
Add missing parameters to __set_state() methods
Browse files Browse the repository at this point in the history
Closes GH-4526.
  • Loading branch information
kylekatarnls authored and nikic committed Aug 12, 2019
1 parent 4281b13 commit b17957e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/date/php_date.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -257,7 +257,7 @@ public static function listIdentifiers(int $what = DateTimeZone::ALL, ?string $c
public function __wakeup();

/** @return DateTimeZone */
public static function __set_state();
public static function __set_state(array $array);
}

class DateInterval {
Expand Down
4 changes: 2 additions & 2 deletions ext/date/php_date_arginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b17957e

Please sign in to comment.