From 4c6dbc9b3cbed48eb2a5d4851c149998dec3b2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 20 Jul 2023 15:01:24 +0800 Subject: [PATCH] qqq --- Connection.php | 4 ++-- SqlBuilder.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Connection.php b/Connection.php index 19c8d78..daa4786 100644 --- a/Connection.php +++ b/Connection.php @@ -144,7 +144,7 @@ class Connection extends Component /** * @return PDO - * @throws Exception + * @throws Kiri\Exception\ConfigException */ public function getConnection(): PDO { @@ -255,7 +255,7 @@ class Connection extends Component * 回收链接 * @throws */ - public function release(PDO $PDO): void + public function release(?PDO $PDO): void { $this->pool()->push($this->cds, $PDO); } diff --git a/SqlBuilder.php b/SqlBuilder.php index 1befcca..7aa7cba 100644 --- a/SqlBuilder.php +++ b/SqlBuilder.php @@ -121,7 +121,7 @@ class SqlBuilder extends Component $update .= '(' . implode(',', $this->getFields($attributes)) . ') VALUES '; $order = 0; - $keys = $params = []; + $keys = []; foreach ($attributes as $attribute) { $_keys = $this->builderParams($attribute, true, $order);