From 8a14cd54b8e68cea1e37e436c676bd9942ec9c90 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 21 Mar 2016 09:45:10 +0000 Subject: [PATCH] explicilty import DateInterval, so phpDoc is correct too --- api/src/DateTime.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/DateTime.php b/api/src/DateTime.php index 4fba95ef58..bd57bc9078 100644 --- a/api/src/DateTime.php +++ b/api/src/DateTime.php @@ -14,6 +14,7 @@ namespace EGroupware\Api; // we do not have an own implementation/extensions use DateTimeZone; +use DateInterval; /** * EGroupware time and timezone handling class extending PHP's DateTime @@ -177,7 +178,7 @@ class DateTime extends \DateTime */ public function add($interval) { - if (is_string($interval)) $interval = \DateInterval::createFromDateString($interval); + if (is_string($interval)) $interval = DateInterval::createFromDateString($interval); parent::add($interval); }