From 296464c7f3daf784f0f2bc6d3a9133070f98a6c0 Mon Sep 17 00:00:00 2001 From: "Kyour.cn" Date: Sat, 27 May 2023 16:37:30 +0800 Subject: [PATCH] Update BaseQuery.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 模型find方法明确返回类型,帮助ide推理数据类型 --- src/db/BaseQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/BaseQuery.php b/src/db/BaseQuery.php index 1dab8cd3..530bbdd5 100644 --- a/src/db/BaseQuery.php +++ b/src/db/BaseQuery.php @@ -1346,7 +1346,7 @@ public function select(array $data = []): Collection * @throws ModelNotFoundException * @throws DataNotFoundException * - * @return mixed + * @return $this|array|null */ public function find($data = null) {