From 27e87a461eeab0d84b33b2716ba6071c0a3f92f1 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 24 Sep 2021 02:34:13 +0800 Subject: [PATCH] 111 --- src/Connection.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Connection.php b/src/Connection.php index ab32ec0..018c54b 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -138,11 +138,12 @@ class Connection extends Component } } - /** - * @return mixed - * @throws ReflectionException - * @throws NotFindClassException - */ + /** + * @return mixed + * @throws ReflectionException + * @throws NotFindClassException + * @throws \Exception + */ public function getSchema(): Schema { if ($this->_schema === null) { @@ -158,7 +159,7 @@ class Connection extends Component * @param $sql * @return bool */ - #[Pure] public function isWrite($sql): bool + public function isWrite($sql): bool { if (empty($sql)) return false; if (str_starts_with(strtolower($sql), 'select')) {