Skip to content

Commit

Permalink
DateTime*::getOffset() no longer returns false as of PHP 8.0.0
Browse files Browse the repository at this point in the history
Cf. <php/doc-en#282>.

Closes GH-6539.
  • Loading branch information
cmb69 committed Dec 26, 2020
1 parent 23bbff2 commit 269936e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ext/date/php_date.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function format(string $format);
/** @return DateTimeZone|false */
public function getTimezone();

/** @return int|false */
/** @return int */
public function getOffset();

/** @return int|false */
Expand Down Expand Up @@ -202,7 +202,7 @@ public function getTimezone() {}
public function setTimezone(DateTimeZone $timezone) {}

/**
* @return int|false
* @return int
* @alias date_offset_get
*/
public function getOffset() {}
Expand Down Expand Up @@ -279,7 +279,7 @@ public function format(string $format) {}
public function getTimezone() {}

/**
* @return int|false
* @return int
* @alias date_offset_get
*/
public function getOffset() {}
Expand Down
2 changes: 1 addition & 1 deletion ext/date/php_date_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 65e429036ef2ee45f31688bc2af94dc26a1b973a */
* Stub hash: 7b23a03d3c4941fb9a614de62d80fa5b0e11d14b */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, datetime, IS_STRING, 0)
Expand Down

0 comments on commit 269936e

Please sign in to comment.