diff --git a/src/Filters/QueryMatchFilter.php b/src/Filters/QueryMatchFilter.php index 42ad167..8a1dfd9 100644 --- a/src/Filters/QueryMatchFilter.php +++ b/src/Filters/QueryMatchFilter.php @@ -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) {