File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -309,7 +309,8 @@ protected function compileBinds()
309
309
*/
310
310
protected function matchNamedBinds (string $ sql , array $ binds ): string
311
311
{
312
- $ replacers = [];
312
+ $ replacersFrom = [];
313
+ $ replacersTo = [];
313
314
314
315
foreach ($ binds as $ placeholder => $ value ) {
315
316
// $value[1] contains the boolean whether should be escaped or not
@@ -322,10 +323,11 @@ protected function matchNamedBinds(string $sql, array $binds): string
322
323
$ escapedValue = '( ' . implode (', ' , $ escapedValue ) . ') ' ;
323
324
}
324
325
325
- $ replacers [": {$ placeholder }: " ] = $ escapedValue ;
326
+ $ replacersFrom [] = ": {$ placeholder }: " ;
327
+ $ replacersTo [] = $ escapedValue ;
326
328
}
327
329
328
- return strtr ( $ sql , $ replacers );
330
+ return str_replace ( $ replacersFrom , $ replacersTo , $ sql );
329
331
}
330
332
331
333
/**
You can’t perform that action at this time.
0 commit comments