From aafb0dd5e07b64f077bd78fd1dfd1fd3c02223fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 2 Apr 2023 23:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Connection.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Connection.php b/Connection.php index 24a80e0..b62eb89 100644 --- a/Connection.php +++ b/Connection.php @@ -22,6 +22,7 @@ use Kiri\Abstracts\Config; use Kiri\Di\ContainerInterface; use Kiri\Di\Context; use Kiri\Events\EventProvider; +use Kiri\Exception\ConfigException; use Kiri\Exception\NotFindClassException; use Kiri\Pool\Connection as PoolConnection; use Kiri\Server\Events\OnWorkerExit; @@ -142,8 +143,8 @@ class Connection extends Component /** - * @return PDO - * @throws Exception + * @return Mysql\PDO + * @throws ConfigException */ public function getMasterClient(): Mysql\PDO { @@ -251,7 +252,7 @@ class Connection extends Component * 回收链接 * @throws */ - public function release(PDO $PDO) + public function release(Mysql\PDO $PDO) { if ($PDO->inTransaction()) { return;