From 8601f2cbe7f76d13a3b0cffba2ba1dfa5ff421ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 18 Oct 2021 11:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Mysql/PDO.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index e3320db..102aca9 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -143,12 +143,12 @@ class PDO implements StopHeartbeatCheck } - /** - * @param string $sql - * @param array $params - * @return array - * @throws Exception - */ + /** + * @param string $sql + * @param array $params + * @return bool|array|null + * @throws Exception + */ public function fetchAll(string $sql, array $params = []): bool|null|array { $pdo = $this->queryPrev($sql, $params); @@ -159,12 +159,12 @@ class PDO implements StopHeartbeatCheck } - /** - * @param string $sql - * @param array $params - * @return array - * @throws Exception - */ + /** + * @param string $sql + * @param array $params + * @return bool|array|null + * @throws Exception + */ public function fetch(string $sql, array $params = []): bool|null|array { $pdo = $this->queryPrev($sql, $params);