forked from extern/egroupware
explicilty import DateInterval, so phpDoc is correct too
This commit is contained in:
parent
a0d478a92b
commit
8a14cd54b8
@ -14,6 +14,7 @@ namespace EGroupware\Api;
|
|||||||
|
|
||||||
// we do not have an own implementation/extensions
|
// we do not have an own implementation/extensions
|
||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
|
use DateInterval;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EGroupware time and timezone handling class extending PHP's DateTime
|
* EGroupware time and timezone handling class extending PHP's DateTime
|
||||||
@ -177,7 +178,7 @@ class DateTime extends \DateTime
|
|||||||
*/
|
*/
|
||||||
public function add($interval)
|
public function add($interval)
|
||||||
{
|
{
|
||||||
if (is_string($interval)) $interval = \DateInterval::createFromDateString($interval);
|
if (is_string($interval)) $interval = DateInterval::createFromDateString($interval);
|
||||||
|
|
||||||
parent::add($interval);
|
parent::add($interval);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user