Skip to content

Commit b485b73

Browse files
authored
Merge pull request #155 from skipperbent/v4-development
Version 4.15.8
2 parents 112054b + 7838c12 commit b485b73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Pecee/Pixie/QueryBuilder/QueryObject.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,11 @@ protected function interpolateQuery($query, $params): string
8383
$keys = [];
8484
$values = $params;
8585

86+
$query = str_replace('?', ':?', $query);
87+
8688
// build a regular expression for each parameter
8789
foreach ($params as $key => $value) {
88-
$keys[] = '/' . (\is_string($key) ? ':' . $key : '[?]') . '/';
90+
$keys[] = '/' . (\is_string($key) ? ':' . $key : '\:\?') . '/';
8991

9092
if($value instanceof Raw) {
9193
continue;

0 commit comments

Comments
 (0)