Skip to content

Commit 3a34072

Browse files
committed
fix: multiple expressions for query
Signed-off-by: Julien Guittard <julien.guittard@me.com>
1 parent 8f3f011 commit 3a34072

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/Operation/QueryOperation.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,14 @@ public function __construct(
7676
);
7777
break;
7878
default:
79-
$this->setExpression([
80-
$key => $condition,
81-
]);
79+
if (is_numeric($key)) {
80+
$this->setExpression($condition);
81+
82+
} else {
83+
$this->setExpression([
84+
$key => $condition,
85+
]);
86+
}
8287
break;
8388
}
8489
}

0 commit comments

Comments
 (0)