mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
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
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user