From 01d58b4896b6dec2e425f9f24ab74ff37cb35f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 30 May 2022 16:55:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ActiveQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActiveQuery.php b/ActiveQuery.php index 9682ac7..3945410 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -230,7 +230,7 @@ class ActiveQuery extends Component implements ISqlBuilder */ public function all(): Collection|array { - if (($data = $this->execute($this->builder->all())->all()) == false) { + if (!($data = $this->execute($this->builder->all())->all())) { return new Collection($this, [], $this->modelClass); } if (!empty($this->with)) {