From 5c6663c002dc4e69bc6748569cbdb06189ba2fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 4 Apr 2023 14:49:43 +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 --- Mysql/PDO.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mysql/PDO.php b/Mysql/PDO.php index fb371e3..713e649 100644 --- a/Mysql/PDO.php +++ b/Mysql/PDO.php @@ -360,9 +360,9 @@ class PDO implements StopHeartbeatCheck /** - * @return \PDO + * @return void */ - private function newClient(): \PDO + private function newClient(): void { $link = new \PDO('mysql:dbname=' . $this->dbname . ';host=' . $this->cds, $this->username, $this->password, [ \PDO::ATTR_EMULATE_PREPARES => false, @@ -380,7 +380,7 @@ class PDO implements StopHeartbeatCheck if (Db::inTransactionsActive()) { $link->beginTransaction(); } - return $this->pdo = $link; + $this->pdo = $link; } }