Skip to content

Commit

Permalink
Fixes #20
Browse files Browse the repository at this point in the history
/var/www/html/src/Filters/QueryMatchFilter.php:67
Undefined array key 0
  • Loading branch information
Schrank committed May 27, 2024
1 parent d8ed226 commit bf3b432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filters/QueryMatchFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function filter($collection): array
if (AccessHelper::keyExists($value, $key, $this->magicIsAllowed)) {
$value1 = AccessHelper::getValue($value, $key, $this->magicIsAllowed);
} elseif (str_contains($key, '.')) {
$value1 = (new JSONPath($value))->find($key)->getData()[0];
$value1 = (new JSONPath($value))->find($key)->getData()[0] ?? '';
}
if ($value1) {
if ($operator === null && $value1) {
Expand Down

0 comments on commit bf3b432

Please sign in to comment.