mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Sync date_diff and DateTime::diff return type
This function/method cannot return false.
This commit is contained in:
parent
48e2e5324e
commit
c31f9f7ee4
@ -238,7 +238,7 @@ class DateTime implements DateTimeInterface
|
||||
public function getTimestamp() {}
|
||||
|
||||
/**
|
||||
* @return DateInterval|false
|
||||
* @return DateInterval
|
||||
* @alias date_diff
|
||||
*/
|
||||
public function diff(DateTimeInterface $targetObject, bool $absolute = false) {}
|
||||
@ -291,7 +291,7 @@ class DateTimeImmutable implements DateTimeInterface
|
||||
public function getTimestamp() {}
|
||||
|
||||
/**
|
||||
* @return DateInterval|false
|
||||
* @return DateInterval
|
||||
* @alias date_diff
|
||||
*/
|
||||
public function diff(DateTimeInterface $targetObject, bool $absolute = false) {}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 339c2c91f38eeaafac6134ac04573243069502f5 */
|
||||
* Stub hash: 880a93d8a3461635447318317869fa7d3d7762dd */
|
||||
|
||||
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