Skip to content

Commit fd5f631

Browse files
committed
Fix stubs of DateTimeZone->getTransitions
The default value of `timestamp_end` is INT32_MAX and not ZEND_LONG_MAX
1 parent cd58662 commit fd5f631

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/date/php_date.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function timezone_offset_get(DateTimeZone $object, DateTimeInterface $datetime):
227227
* @refcount 1
228228
*/
229229
function timezone_transitions_get(
230-
DateTimeZone $object, int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX): array|false {}
230+
DateTimeZone $object, int $timestampBegin = PHP_INT_MIN, int $timestampEnd = 2147483647): array|false {}
231231

232232
/**
233233
* @return array<string, float|string>|false
@@ -606,7 +606,7 @@ public function getOffset(DateTimeInterface $datetime): int {}
606606
* @tentative-return-type
607607
* @alias timezone_transitions_get
608608
*/
609-
public function getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = PHP_INT_MAX): array|false {}
609+
public function getTransitions(int $timestampBegin = PHP_INT_MIN, int $timestampEnd = 2147483647): array|false {}
610610

611611
/**
612612
* @return array<string, float|string>|false

ext/date/php_date_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)