File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,6 @@ public function filter($collection): array
6060 for ($ logicalAndNum = 0 ; $ logicalAndNum < \count ($ matches [0 ]); $ logicalAndNum ++) {
6161 $ key = $ matches ['key ' ][$ logicalAndNum ] ?: $ matches ['keySquare ' ][$ logicalAndNum ];
6262
63- // if ($key === '') {
64- // throw new RuntimeException('Malformed filter query: key was not set');
65- // }
66-
6763 $ operator = $ matches ['operator ' ][$ logicalAndNum ] ?? null ;
6864 $ comparisonValue = $ matches ['comparisonValue ' ][$ logicalAndNum ] ?? null ;
6965
@@ -73,7 +69,7 @@ public function filter($collection): array
7369 try {
7470 $ comparisonValue = \json_decode ($ comparisonValue , true , flags: JSON_THROW_ON_ERROR );
7571 } catch (\JsonException $ e ) {
76- //Leave $comparisonValue as raw (regular express or non quote wrapped string
72+ //Leave $comparisonValue as raw (eg. regular express or non quote wrapped string)
7773 }
7874 }
7975
You can’t perform that action at this time.
0 commit comments