Skip to content
This repository was archived by the owner on Aug 13, 2023. It is now read-only.

Commit c7a0db8

Browse files
authored
Update Where.php
1 parent 65c5ef4 commit c7a0db8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/QueryBuilder/Operator/Where.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ protected function storageWhere()
8686
protected function buildWhereOne(...$args)
8787
{
8888
$equal = count($args) === 3;
89-
$opr = $equal ? $args[1] : '=';
90-
9189
$_value = $args[1 + $equal];
90+
$opr = $equal ? $args[1] : (is_array($_value) ? 'in' : '=');
91+
9292
$raw = false;
9393

9494
if ($args[1 + $equal] instanceof RawQuery || $args[1 + $equal] instanceof InstructionSelect)

0 commit comments

Comments
 (0)