From 522dfa9cc750ac6db37fff1e751db2b8876a0365 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Fri, 19 May 2023 14:45:58 -0400 Subject: [PATCH] Ignore keys that start with null --- src/Query/Query.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Query/Query.php b/src/Query/Query.php index 9a7d0c4..de4698f 100644 --- a/src/Query/Query.php +++ b/src/Query/Query.php @@ -423,7 +423,11 @@ private static function filterDataWithMatchedIndex( foreach ($matched_index->fields as $matched_field) { if ($keys === vec[]) { foreach ($candidates[$matched_field] as $candidate_value) { - $keys[] = vec[$candidate_value as arraykey]; + if (!$candidate_value is arraykey) { + continue; + } + + $keys[] = vec[$candidate_value]; } } else { $new_keys = vec[];