Skip to content

Commit

Permalink
Merge pull request #155 from skipperbent/v4-development
Browse files Browse the repository at this point in the history
Version 4.15.8
  • Loading branch information
skipperbent authored Jul 19, 2023
2 parents 112054b + 7838c12 commit b485b73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Pecee/Pixie/QueryBuilder/QueryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ protected function interpolateQuery($query, $params): string
$keys = [];
$values = $params;

$query = str_replace('?', ':?', $query);

// build a regular expression for each parameter
foreach ($params as $key => $value) {
$keys[] = '/' . (\is_string($key) ? ':' . $key : '[?]') . '/';
$keys[] = '/' . (\is_string($key) ? ':' . $key : '\:\?') . '/';

if($value instanceof Raw) {
continue;
Expand Down

0 comments on commit b485b73

Please sign in to comment.