From 77748148ce0f26f00e32efb9c9e3b569b693cf0a Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Sat, 18 Oct 2025 22:10:22 +0100 Subject: [PATCH] Remove reference from return of getBounded --- src/DatabaseDriver.php | 2 +- src/DatabaseQuery.php | 2 +- src/Pdo/PdoDriver.php | 2 +- src/Query/PreparableInterface.php | 2 +- src/Sqlsrv/SqlsrvDriver.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/DatabaseDriver.php b/src/DatabaseDriver.php index 9f943ef6..cff71f89 100644 --- a/src/DatabaseDriver.php +++ b/src/DatabaseDriver.php @@ -629,7 +629,7 @@ public function execute() $this->count++; // Get list of bound parameters - $bounded =& $this->sql->getBounded(); + $bounded = $this->sql->getBounded(); // If there is a monitor registered, let it know we are starting this query if ($this->monitor) { diff --git a/src/DatabaseQuery.php b/src/DatabaseQuery.php index b288c4df..fa3614a8 100644 --- a/src/DatabaseQuery.php +++ b/src/DatabaseQuery.php @@ -2049,7 +2049,7 @@ public function __clone() * * @since 1.5.0 */ - public function &getBounded($key = null) + public function getBounded($key = null) { if (empty($key)) { return $this->bounded; diff --git a/src/Pdo/PdoDriver.php b/src/Pdo/PdoDriver.php index cfb3d109..5043df84 100644 --- a/src/Pdo/PdoDriver.php +++ b/src/Pdo/PdoDriver.php @@ -432,7 +432,7 @@ public function execute() $this->count++; // Get list of bounded parameters - $bounded =& $this->sql->getBounded(); + $bounded = $this->sql->getBounded(); // If there is a monitor registered, let it know we are starting this query if ($this->monitor) { diff --git a/src/Query/PreparableInterface.php b/src/Query/PreparableInterface.php index 125d4325..6d9dd2f8 100644 --- a/src/Query/PreparableInterface.php +++ b/src/Query/PreparableInterface.php @@ -71,5 +71,5 @@ public function unbind($key); * * @since 1.0 */ - public function &getBounded($key = null); + public function getBounded($key = null); } diff --git a/src/Sqlsrv/SqlsrvDriver.php b/src/Sqlsrv/SqlsrvDriver.php index d8b88cb8..962cc851 100644 --- a/src/Sqlsrv/SqlsrvDriver.php +++ b/src/Sqlsrv/SqlsrvDriver.php @@ -577,7 +577,7 @@ public function execute() $this->count++; // Get list of bounded parameters - $bounded =& $this->sql->getBounded(); + $bounded = $this->sql->getBounded(); // If there is a monitor registered, let it know we are starting this query if ($this->monitor) {