From 0eb24c8307fc5cd79adecebb650217c3f49c7077 Mon Sep 17 00:00:00 2001 From: Zag Date: Thu, 30 Oct 2025 11:46:47 +0000 Subject: [PATCH] Fix reference to argument in closure for params Fix reference to argument in closure for params See issue 222 --- lib/Database/ez_mysqli.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Database/ez_mysqli.php b/lib/Database/ez_mysqli.php index 90641b0..0d33835 100644 --- a/lib/Database/ez_mysqli.php +++ b/lib/Database/ez_mysqli.php @@ -291,7 +291,7 @@ public function query_prepared(string $query, array $param = null) $params = []; $types = \array_reduce( $param, - function ($string, &$arg) use (&$params) { + function ($string, $arg) use (&$params) { $params[] = &$arg; if (\is_float($arg)) $string .= 'd';