Use DateTimeInterface
This commit is contained in:
1 parent
5926207012
commit
cc42c1d29f
1 file changed
+1
-1
@@ -61,7 +61,7 @@ class CellTypeHelper
|
|||||||
public static function isDateTimeOrDateInterval($value)
|
public static function isDateTimeOrDateInterval($value)
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
$value instanceof \DateTime ||
|
$value instanceof \DateTimeInterface ||
|
||||||
$value instanceof \DateInterval
|
$value instanceof \DateInterval
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user