From c31f9f7ee4fcdc07d367c41d3645e0fe3870704c Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 18 Jan 2021 14:32:24 +0100 Subject: Sync date_diff and DateTime::diff return type This function/method cannot return false. --- ext/date/php_date.stub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/date/php_date.stub.php') 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) {} -- cgit v1.2.1