From 84d120de92a7efaecf89ce488f674fe6a77b25bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 25 Jun 2021 11:28:34 +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/Command.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Database/Command.php b/Database/Command.php index 40a8e79f..2817c7ed 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -55,11 +55,11 @@ class Command extends Component /** * @param bool $isInsert - * @param bool|null $hasAutoIncrement + * @param mixed $hasAutoIncrement * @return int|bool|array|string|null * @throws Exception */ - public function save(bool $isInsert = TRUE, ?bool $hasAutoIncrement = null): int|bool|array|string|null + public function save(bool $isInsert = TRUE, mixed $hasAutoIncrement = null): int|bool|array|string|null { return $this->execute(static::EXECUTE, $isInsert, $hasAutoIncrement); } @@ -117,7 +117,7 @@ class Command extends Component * @return int|bool|array|string|null * @throws Exception */ - private function execute($type, $isInsert = null, ?bool $hasAutoIncrement = null): int|bool|array|string|null + private function execute($type, $isInsert = null, mixed $hasAutoIncrement = null): int|bool|array|string|null { try { $this->debug('Execute: ' . $this->sql);