Skip to content

Commit 81d8d60

Browse files
committed
Add missing param to DatePeriod::__construct()
The signature is very overloaded, but takes at most four params, not three.
1 parent 6b2c4be commit 81d8d60

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ext/date/php_date.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public static function __set_state(array $array) {}
394394
class DatePeriod implements IteratorAggregate
395395
{
396396
/* Has an overloaded signature */
397-
public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN) {}
397+
public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN, $options = UNKNOWN) {}
398398

399399
/** @return DateTimeInterface */
400400
public function getStartDate() {}

ext/date/php_date_arginfo.h

Lines changed: 2 additions & 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: 656ce4aafb67dd9fc53d53081bb1a73c7a8b42d6 */
2+
* Stub hash: d1a39515c3457e71f6a00d2bb406ad5c79564e7e */
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, time, IS_STRING, 0)
@@ -409,6 +409,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DatePeriod___construct, 0, 0, 1)
409409
ZEND_ARG_INFO(0, start)
410410
ZEND_ARG_INFO(0, interval)
411411
ZEND_ARG_INFO(0, end)
412+
ZEND_ARG_INFO(0, options)
412413
ZEND_END_ARG_INFO()
413414

414415
#define arginfo_class_DatePeriod_getStartDate arginfo_class_DateTimeInterface_getTimezone

0 commit comments

Comments
 (0)