diff --git a/ActiveQuery.php b/ActiveQuery.php index 8510063..037e0d6 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -166,7 +166,7 @@ class ActiveQuery extends Component implements ISqlBuilder public function first(): ModelInterface|null { $data = $this->execute($this->builder->one())->one(); - if (!is_null($data)) { + if (!is_array($data)) { return $this->populate($data); } else { return NULL;