Fix namespace error

This commit is contained in:
Nathan Gray 2016-03-18 15:37:57 +00:00
parent f1f390e933
commit c2eaabaa5b

View File

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