Skip to content

Commit 1883de9

Browse files
authored
Merge pull request #1 from zag2me/zag2me-patch-1
Fix reference to argument in closure for params
2 parents f21aeb5 + 0eb24c8 commit 1883de9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Database/ez_mysqli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function query_prepared(string $query, array $param = null)
291291
$params = [];
292292
$types = \array_reduce(
293293
$param,
294-
function ($string, &$arg) use (&$params) {
294+
function ($string, $arg) use (&$params) {
295295
$params[] = &$arg;
296296
if (\is_float($arg))
297297
$string .= 'd';

0 commit comments

Comments
 (0)