From: Nikita Popov Date: Fri, 17 Jul 2020 08:28:48 +0000 (+0200) Subject: Add missing param to DatePeriod::__construct() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81d8d6025087a341b63732b95a9015583c299e4c;p=php Add missing param to DatePeriod::__construct() The signature is very overloaded, but takes at most four params, not three. --- diff --git a/ext/date/php_date.stub.php b/ext/date/php_date.stub.php index c6a03ac715..ac5f2c9331 100644 --- a/ext/date/php_date.stub.php +++ b/ext/date/php_date.stub.php @@ -394,7 +394,7 @@ class DateInterval class DatePeriod implements IteratorAggregate { /* Has an overloaded signature */ - public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN) {} + public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN, $options = UNKNOWN) {} /** @return DateTimeInterface */ public function getStartDate() {} diff --git a/ext/date/php_date_arginfo.h b/ext/date/php_date_arginfo.h index 376d0b1453..158f3784e0 100644 --- a/ext/date/php_date_arginfo.h +++ b/ext/date/php_date_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 656ce4aafb67dd9fc53d53081bb1a73c7a8b42d6 */ + * Stub hash: d1a39515c3457e71f6a00d2bb406ad5c79564e7e */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, time, IS_STRING, 0) @@ -409,6 +409,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DatePeriod___construct, 0, 0, 1) ZEND_ARG_INFO(0, start) ZEND_ARG_INFO(0, interval) ZEND_ARG_INFO(0, end) + ZEND_ARG_INFO(0, options) ZEND_END_ARG_INFO() #define arginfo_class_DatePeriod_getStartDate arginfo_class_DateTimeInterface_getTimezone