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