From d2acc197da324232dbc3af1f0f04d3584ede6aad Mon Sep 17 00:00:00 2001 From: whwyy Date: Mon, 18 Dec 2023 23:16:09 +0800 Subject: [PATCH] eee --- Traits/QueryTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Traits/QueryTrait.php b/Traits/QueryTrait.php index 9f3a6c8..9a9e9c2 100644 --- a/Traits/QueryTrait.php +++ b/Traits/QueryTrait.php @@ -717,7 +717,7 @@ abstract class QueryTrait extends Component implements ActiveQueryInterface, ISq if ($value === null) { continue; } - $this->where[] = $this->sprintf($key, $value); + $this->where[] = is_numeric($key) ? $value : $this->sprintf($key, $value); } return $this; }