From 72604ce7cb0b7de8e4baae2a4def472b0bee4014 Mon Sep 17 00:00:00 2001 From: Glenn Jacobi Date: Mon, 7 Aug 2023 08:08:05 +0800 Subject: [PATCH] Update Db.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用phpstrom会提示 ``` 方法 'query' 在 \think\facade\Db 中未找到 ``` 添加这行注释之后就不会提示了 --- src/facade/Db.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/facade/Db.php b/src/facade/Db.php index e75bf535..99848239 100644 --- a/src/facade/Db.php +++ b/src/facade/Db.php @@ -17,6 +17,7 @@ /** * @see \think\DbManager * @mixin \think\DbManager + * @method static query(string $sql, array $bind = [], bool $master = false, bool $pdo = false) 执行查询 返回数据集 */ class Db extends Facade {