Skip to content

Commit fd7e53c

Browse files
authored
Merge pull request acseo#68 from kl3sk/feature/monolog-v3
Update DoctrineToTypesenseTransformer.php
2 parents 6449396 + 4764288 commit fd7e53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transformer/DoctrineToTypesenseTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function castValue(string $entityClass, string $propertyName, $value)
7272

7373
switch ($originalType.$castedType) {
7474
case self::TYPE_DATETIME.self::TYPE_INT_64:
75-
if ($value instanceof \DateTime) {
75+
if ($value instanceof \DateTimeInterface) {
7676
return $value->getTimestamp();
7777
}
7878

0 commit comments

Comments
 (0)