From dfc76b28bb3724c1f02007de913cb293e0ca62d4 Mon Sep 17 00:00:00 2001 From: Glenn Jacobi Date: Fri, 4 Aug 2023 16:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86IDEA=E6=8F=90=E7=A4=BADb::que?= =?UTF-8?q?ry()=E6=89=BE=E4=B8=8D=E5=88=B0=E5=87=BD=E6=95=B0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= 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 b0296c69..2ec0d926 100644 --- a/src/facade/Db.php +++ b/src/facade/Db.php @@ -16,6 +16,7 @@ /** * @see \think\DbManager * @mixin \think\DbManager + * @method static query(string $sql, array $bind = [], bool $master = false, bool $pdo = false) 执行查询 返回数据集 */ class Db extends Facade {