Skip to content

Commit 269936e

Browse files
committed
DateTime*::getOffset() no longer returns false as of PHP 8.0.0
Cf. <php/doc-en#282>. Closes GH-6539.
1 parent 23bbff2 commit 269936e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/date/php_date.stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function format(string $format);
125125
/** @return DateTimeZone|false */
126126
public function getTimezone();
127127

128-
/** @return int|false */
128+
/** @return int */
129129
public function getOffset();
130130

131131
/** @return int|false */
@@ -202,7 +202,7 @@ public function getTimezone() {}
202202
public function setTimezone(DateTimeZone $timezone) {}
203203

204204
/**
205-
* @return int|false
205+
* @return int
206206
* @alias date_offset_get
207207
*/
208208
public function getOffset() {}
@@ -279,7 +279,7 @@ public function format(string $format) {}
279279
public function getTimezone() {}
280280

281281
/**
282-
* @return int|false
282+
* @return int
283283
* @alias date_offset_get
284284
*/
285285
public function getOffset() {}

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: 65e429036ef2ee45f31688bc2af94dc26a1b973a */
2+
* Stub hash: 7b23a03d3c4941fb9a614de62d80fa5b0e11d14b */
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)

0 commit comments

Comments
 (0)