Skip to content

Commit 732f896

Browse files
committed
add support for empty lists in query
1 parent 71cccf3 commit 732f896

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Parser/Parser.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,10 @@ public function ListValue(): array
483483

484484
$this->eat("[");
485485

486-
$valueList = [$this->Value()];
486+
if($this->lookahead["type"] !== "]")
487+
$valueList = [$this->Value()];
488+
else
489+
$valueList = [];
487490

488491
while ($this->lookahead["type"] !== "]") {
489492
$this->eat(",");

0 commit comments

Comments
 (0)