]> granicus.if.org Git - php/commitdiff
DateTime*::getOffset() no longer returns false as of PHP 8.0.0
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 26 Dec 2020 11:21:02 +0000 (12:21 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 26 Dec 2020 14:13:05 +0000 (15:13 +0100)
Cf. <https://github.com/php/doc-en/pull/282>.

Closes GH-6539.

ext/date/php_date.stub.php
ext/date/php_date_arginfo.h

index 3bd6c70a88415bf38c5f7879928d0262bf5ad3df..2519e4ed5d086fb608b042c7ed0798327e7223d1 100644 (file)
@@ -125,7 +125,7 @@ interface DateTimeInterface
     /** @return DateTimeZone|false */
     public function getTimezone();
 
-    /** @return int|false */
+    /** @return int */
     public function getOffset();
 
     /** @return int|false */
@@ -202,7 +202,7 @@ class DateTime implements DateTimeInterface
     public function setTimezone(DateTimeZone $timezone) {}
 
     /**
-     * @return int|false
+     * @return int
      * @alias date_offset_get
      */
     public function getOffset() {}
@@ -279,7 +279,7 @@ class DateTimeImmutable implements DateTimeInterface
     public function getTimezone() {}
 
     /**
-     * @return int|false
+     * @return int
      * @alias date_offset_get
      */
     public function getOffset() {}
index 5f02e7dd788e7ec065a0e12f5919212e16f5d291..49b97a2ac6fd111184087dfe1a6b1aaabc7f236a 100644 (file)
@@ -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)