Silence warning about time in array format by passing it to constructor

This commit is contained in:
nathangray 2018-02-13 15:46:05 -07:00
parent f4927d7e0b
commit 9c29079ddf

View File

@ -497,7 +497,7 @@ class DateTime extends \DateTime
$date = null;
// If numeric, just let normal constructor do it
if(is_numeric($time))
if(is_numeric($time) || is_array($time))
{
return new DateTime($time);
}