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; }