DateTime:: and DateTimeImmutable::getTimestamp() may return false

This commit is contained in:
Christoph M. Becker 2020-12-20 19:32:12 +01:00
parent 3c68f43251
commit b67c232189
2 changed files with 3 additions and 3 deletions

View File

@ -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() {}

View File

@ -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)