File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1454,7 +1454,7 @@ public function delete($data = null): int
1454
1454
* @throws ModelNotFoundException
1455
1455
* @throws DataNotFoundException
1456
1456
*
1457
- * @return Collection|array| static[]
1457
+ * @return Collection< static>
1458
1458
*/
1459
1459
public function select (array $ data = []): Collection
1460
1460
{
@@ -1485,13 +1485,13 @@ public function select(array $data = []): Collection
1485
1485
* 查找单条记录.
1486
1486
*
1487
1487
* @param mixed $data 主键数据
1488
- * @param Closure $closure 闭包数据
1488
+ * @param ? Closure $closure 闭包数据
1489
1489
*
1490
1490
* @throws Exception
1491
1491
* @throws ModelNotFoundException
1492
1492
* @throws DataNotFoundException
1493
1493
*
1494
- * @return mixed
1494
+ * @return mixed|static
1495
1495
*/
1496
1496
public function find ($ data = null , ?Closure $ closure = null )
1497
1497
{
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public static function setDb($db)
35
35
public function getQuery ()
36
36
{
37
37
$ db = $ this ->initDb ()->newQuery ();
38
-
38
+
39
39
if ($ this ->getOption ('cache ' )) {
40
40
[$ key , $ expire , $ tag ] = $ this ->getOption ('cache ' );
41
41
$ db ->cache ($ key , $ expire , $ tag );
@@ -52,8 +52,7 @@ public function getQuery()
52
52
53
53
/**
54
54
* 初始化数据库连接对象.
55
- *
56
- * @return void
55
+ * @return Query
57
56
*/
58
57
private function initDb ()
59
58
{
@@ -213,5 +212,5 @@ public function __call($method, $args)
213
212
}
214
213
215
214
return call_user_func_array ([$ this ->db (), $ method ], $ args );
216
- }
215
+ }
217
216
}
You can’t perform that action at this time.
0 commit comments