We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6449396 + 4764288 commit fd7e53cCopy full SHA for fd7e53c
src/Transformer/DoctrineToTypesenseTransformer.php
@@ -72,7 +72,7 @@ public function castValue(string $entityClass, string $propertyName, $value)
72
73
switch ($originalType.$castedType) {
74
case self::TYPE_DATETIME.self::TYPE_INT_64:
75
- if ($value instanceof \DateTime) {
+ if ($value instanceof \DateTimeInterface) {
76
return $value->getTimestamp();
77
}
78
0 commit comments