From 44039cb688338b7123016aade28336b4f2d6a820 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E4=B8=B6=E7=A7=8B=E7=A7=8B=E7=A7=8B=E7=A7=8B?= =?UTF-8?q?=E7=A7=8B?= <> Date: Sat, 25 Mar 2023 09:10:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86query=E5=92=8Cexecute=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E9=9D=99=E6=80=81=E6=96=B9=E6=B3=95=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E4=BE=BF=E5=8F=AF=E4=BB=A5=E4=BD=BF=E7=94=A8DB::query=E5=92=8C?= =?UTF-8?q?DB::execute=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/_ide_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_ide_helper.php b/src/_ide_helper.php index fbe9e15..584a287 100644 --- a/src/_ide_helper.php +++ b/src/_ide_helper.php @@ -82,7 +82,7 @@ public static function rollback(): void * @throws \think\db\exception\BindParamException * @throws \PDOException */ - public function query(string $sql, array $bind = []): array + public static function query(string $sql, array $bind = []): array { /** @var \think\Db $instance */ return $instance->query($sql,$bind); @@ -108,7 +108,7 @@ public function master(bool $readMaster = true) * @throws \think\db\exception\BindParamException * @throws \PDOException */ - public function execute(string $sql, array $bind = []): int + public static function execute(string $sql, array $bind = []): int { /** @var \think\Db $instance */ return $instance->execute($sql,$bind);