Skip to content

Commit f2cb5de

Browse files
committed
SqlPreprocessor: fixed casting to string
1 parent 88e0e04 commit f2cb5de

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, string $mode = null): string
141141
if (is_resource($value)) {
142142
$value = stream_get_contents($value);
143143
}
144-
return $this->connection->quote($value);
144+
return $this->connection->quote((string) $value);
145145
}
146146

147147
} elseif ($value === null) {

0 commit comments

Comments
 (0)