explicilty import DateInterval, so phpDoc is correct too

This commit is contained in:
Ralf Becker 2016-03-21 09:45:10 +00:00
parent a0d478a92b
commit 8a14cd54b8

View File

@ -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);
}