com php-src: DateTime:: and DateTimeImmutable::getTimestamp() may return false: ext/date/php_date.stub.php ext/date/php_date _arginfo.h
| From: | Christoph Michael Becker | Date: | Sun, 20 Dec 2020 18:32:12 +0000 |
| Subject: | com php-src: DateTime:: and DateTimeImmutable::getTimestamp() may return false: ext/date/php_date.stub.php ext/date/php_date _arginfo.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-114513@lists.php.net to get a copy of this message | ||
Commit: b67c23218950eae0a153b093dcefbe14b3b40901
Author: Christoph M. Becker <cmbecker69@gmx.de> Sun, 20 Dec 2020 19:32:12 +0100
Parents: 3c68f43251e966a0057c5aebe15f2c77b899e029
Branches: PHP-8.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b67c23218950eae0a153b093dcefbe14b3b40901
Log:
DateTime:: and DateTimeImmutable::getTimestamp() may return false
Changed paths:
M ext/date/php_date.stub.php
M ext/date/php_date_arginfo.h
Diff:
diff --git a/ext/date/php_date.stub.php b/ext/date/php_date.stub.php
index 3bd6c70a884..c25a9a65399 100644
--- a/ext/date/php_date.stub.php
+++ b/ext/date/php_date.stub.php
@@ -232,7 +232,7 @@ class DateTime implements DateTimeInterface
public function setTimestamp(int $timestamp) {}
/**
- * @return int
+ * @return int|false
* @alias date_timestamp_get
*/
public function getTimestamp() {}
@@ -285,7 +285,7 @@ class DateTimeImmutable implements DateTimeInterface
public function getOffset() {}
/**
- * @return int
+ * @return int|false
* @alias date_timestamp_get
*/
public function getTimestamp() {}
diff --git a/ext/date/php_date_arginfo.h b/ext/date/php_date_arginfo.h
index 5f02e7dd788..522fd800cdd 100644
--- a/ext/date/php_date_arginfo.h
+++ b/ext/date/php_date_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 65e429036ef2ee45f31688bc2af94dc26a1b973a */
+ * Stub hash: 1e51225485aa1a03fd2f58c9c85625b340de3d9d */
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)