mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
DateTime:: and DateTimeImmutable::getTimestamp() may return false
This commit is contained in:
parent
3c68f43251
commit
b67c232189
@ -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() {}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user