Skip to content

Commit 49e030d

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Sync datefmt_get_calendar_object signature Sync intlcal_create_instance() and IntlCalendar::createInstance() Sync date_diff and DateTime::diff return type
2 parents 0f26f9b + ebf461a commit 49e030d

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

ext/date/php_date.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function setTimestamp(int $timestamp) {}
238238
public function getTimestamp() {}
239239

240240
/**
241-
* @return DateInterval|false
241+
* @return DateInterval
242242
* @alias date_diff
243243
*/
244244
public function diff(DateTimeInterface $targetObject, bool $absolute = false) {}
@@ -291,7 +291,7 @@ public function getOffset() {}
291291
public function getTimestamp() {}
292292

293293
/**
294-
* @return DateInterval|false
294+
* @return DateInterval
295295
* @alias date_diff
296296
*/
297297
public function diff(DateTimeInterface $targetObject, bool $absolute = false) {}

ext/date/php_date_arginfo.h

Lines changed: 1 addition & 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: 339c2c91f38eeaafac6134ac04573243069502f5 */
2+
* Stub hash: 880a93d8a3461635447318317869fa7d3d7762dd */
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, datetime, IS_STRING, 0)

ext/intl/calendar/calendar.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ private function __construct() {}
88

99
/**
1010
* @param IntlTimeZone|DateTimeZone|string|null $timezone
11-
* @return IntlCalendar|IntlGregorianCalendar|null
11+
* @return IntlCalendar|null
1212
* @alias intlcal_create_instance
1313
*/
1414
public static function createInstance($timezone = null, ?string $locale = null) {}

ext/intl/calendar/calendar_arginfo.h

Lines changed: 1 addition & 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: ee755d4a500e2d1ba4d589c233b7d09a06b5cce8 */
2+
* Stub hash: 18a92d3af801f11e5c3b90e5d272fd98b3515c40 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlCalendar___construct, 0, 0, 0)
55
ZEND_END_ARG_INFO()

ext/intl/dateformat/dateformat.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function setCalendar(IntlCalendar|int|null $calendar) {}
4848
public function getTimeZoneId() {}
4949

5050
/**
51-
* @return IntlCalendar|null|false
51+
* @return IntlCalendar|false|null
5252
* @alias datefmt_get_calendar_object
5353
*/
5454
public function getCalendarObject() {}

ext/intl/dateformat/dateformat_arginfo.h

Lines changed: 1 addition & 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: 437726f2d61a93d530e7e3b6df0741ae68c64697 */
2+
* Stub hash: 62742b5f463272f43970e98900a89d513c4fb839 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlDateFormatter___construct, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1)

0 commit comments

Comments
 (0)