From 7f6117387aba2686e2ad33d81486869d21e26fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Mar 2021 10:22:50 +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 --- Database/Connection.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Database/Connection.php b/Database/Connection.php index 0e7960a6..5d42bf28 100644 --- a/Database/Connection.php +++ b/Database/Connection.php @@ -11,6 +11,7 @@ declare(strict_types=1); namespace Database; +use JetBrains\PhpStorm\Pure; use ReflectionException; use Snowflake\Abstracts\Component; use Database\Mysql\Schema; @@ -105,8 +106,9 @@ class Connection extends Component /** - * 初始化 Channel * @throws ComponentException + * @throws NotFindClassException + * @throws ReflectionException */ public function fill() { @@ -151,7 +153,7 @@ class Connection extends Component * @param $sql * @return bool */ - public function isWrite($sql): bool + #[Pure] public function isWrite($sql): bool { if (empty($sql)) return false; @@ -163,6 +165,8 @@ class Connection extends Component /** * @return mixed * @throws ComponentException + * @throws NotFindClassException + * @throws ReflectionException */ public function getCacheDriver(): mixed {