From 89e7f2d7bcf5bfdedacfd1688284c5bb9e18e9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 25 Jun 2021 11:27:25 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Database/Command.php b/Database/Command.php index dbc93966..40a8e79f 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -59,7 +59,7 @@ class Command extends Component * @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, ?bool $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, ?bool $hasAutoIncrement = null): int|bool|array|string|null { try { $this->debug('Execute: ' . $this->sql);