Skip to content

Commit 661db69

Browse files
committed
use DateTimeInterface
1 parent b9ca63a commit 661db69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/SqlPreprocessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function formatValue($value, $mode = NULL)
141141
$this->remaining = array_merge($this->remaining, $params);
142142
return $res;
143143

144-
} elseif ($value instanceof \DateTime || $value instanceof \DateTimeInterface) {
144+
} elseif ($value instanceof \DateTimeInterface) {
145145
return $this->driver->formatDateTime($value);
146146

147147
} elseif ($value instanceof \DateInterval) {

0 commit comments

Comments
 (0)