Skip to content

Commit 522dfa9

Browse files
committed
Ignore keys that start with null
1 parent e15dd14 commit 522dfa9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Query/Query.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,11 @@ private static function filterDataWithMatchedIndex(
423423
foreach ($matched_index->fields as $matched_field) {
424424
if ($keys === vec[]) {
425425
foreach ($candidates[$matched_field] as $candidate_value) {
426-
$keys[] = vec[$candidate_value as arraykey];
426+
if (!$candidate_value is arraykey) {
427+
continue;
428+
}
429+
430+
$keys[] = vec[$candidate_value];
427431
}
428432
} else {
429433
$new_keys = vec[];

0 commit comments

Comments
 (0)