From 82edcfa7c6641b0966da079832910e32a4a9a007 Mon Sep 17 00:00:00 2001 From: Shalaev Date: Wed, 4 May 2022 16:30:58 +0300 Subject: [PATCH] Update Connection.php fix error "Trying to access array offset on value of type bool after call method processInsertGetId" in QueryProcessor class --- src/Connection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Connection.php b/src/Connection.php index a7ade69..17acebb 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -238,7 +238,7 @@ public function getTablePrefix() * * @param array $params * @param array $bindings - * @return bool + * @return array * @throws BulkInsertQueryException */ public function insert($params, $bindings = []) @@ -253,7 +253,7 @@ public function insert($params, $bindings = []) throw new BulkInsertQueryException($result); } - return true; + return $result; } /**