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 09b6d37a04
commit b475edc7a2

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