From 4c29d064258e73f827604e488b99165181d19ca5 Mon Sep 17 00:00:00 2001 From: Ignace Nyamagana Butera Date: Fri, 28 Jan 2022 12:22:46 +0100 Subject: [PATCH] Bugfix DateInterval::createFromDateString return type declaration --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index fd4ba6a6fa..0e043862e9 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -1583,7 +1583,7 @@ 'DateInterval::__construct' => ['void', 'spec'=>'string'], 'DateInterval::__set_state' => ['DateInterval', 'array'=>'array'], 'DateInterval::__wakeup' => ['void'], -'DateInterval::createFromDateString' => ['DateInterval', 'time'=>'string'], +'DateInterval::createFromDateString' => ['DateInterval|false', 'time'=>'string'], 'DateInterval::format' => ['string', 'format'=>'string'], 'DatePeriod::__construct' => ['void', 'start'=>'DateTimeInterface', 'interval'=>'DateInterval', 'recur'=>'int', 'options='=>'int'], 'DatePeriod::__construct\'1' => ['void', 'start'=>'DateTimeInterface', 'interval'=>'DateInterval', 'end'=>'DateTimeInterface', 'options='=>'int'],