From a21f06f1b7b4b689a84467115893c75404ec194c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 11 Jan 2021 17:28:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Traits/QueryTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Database/Traits/QueryTrait.php b/Database/Traits/QueryTrait.php index f4ba91b4..d5b03a4d 100644 --- a/Database/Traits/QueryTrait.php +++ b/Database/Traits/QueryTrait.php @@ -727,10 +727,10 @@ trait QueryTrait } /** - * @param array|callable $conditions + * @param callable|array|string $conditions * @return $this */ - public function where(callable|array $conditions): static + public function where(callable|array|string $conditions): static { if ($conditions instanceof \Closure) { call_user_func($conditions, $this);