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) {