summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-18 14:32:24 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-18 14:39:32 +0100
commitc31f9f7ee4fcdc07d367c41d3645e0fe3870704c (patch)
treec60baa9bb361f2738ed6489ada1e549fc95a4384
parent48e2e5324ea42a51e20d01de387b0c91143d5060 (diff)
downloadphp-git-c31f9f7ee4fcdc07d367c41d3645e0fe3870704c.tar.gz
Sync date_diff and DateTime::diff return type
This function/method cannot return false.
-rw-r--r--ext/date/php_date.stub.php4
-rw-r--r--ext/date/php_date_arginfo.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/date/php_date.stub.php b/ext/date/php_date.stub.php
index fef4ffb02f..cb01b7e073 100644
--- a/ext/date/php_date.stub.php
+++ b/ext/date/php_date.stub.php
@@ -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) {}
diff --git a/ext/date/php_date_arginfo.h b/ext/date/php_date_arginfo.h
index 7be0de2e02..cf50abb43f 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: 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)