add support for DateTimeImmutable
Adds support for DateTimeImmutable by using the shared DateTimeInterface which both this and DateTime implement.
This commit is contained in:
1 parent
7923bfef7a
commit
3f67dbe66f
2 files changed
+2
-1
No files matched your search
@@ -61,7 +61,7 @@ class CellTypeHelper
|
||||
public static function isDateTimeOrDateInterval($value)
|
||||
{
|
||||
return (
|
||||
$value instanceof \DateTime ||
|
||||
$value instanceof \DateTimeInterface ||
|
||||
$value instanceof \DateInterval
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user