From d45725603dd177ba4c03803917a505b127a8715a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 10 Nov 2021 11:02:07 +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/ActiveQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ActiveQuery.php b/src/ActiveQuery.php index 6003770..5aaf96a 100644 --- a/src/ActiveQuery.php +++ b/src/ActiveQuery.php @@ -295,10 +295,10 @@ class ActiveQuery extends Component implements ISqlBuilder /** * @param bool $getSql - * @return string|bool + * @return int|bool|string|null * @throws Exception */ - public function delete(bool $getSql = false): string|bool + public function delete(bool $getSql = false): int|bool|string|null { $sql = $this->builder->delete(); if ($getSql === false) {