Skip to content

Commit

Permalink
Ignore keys that start with null
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed May 19, 2023
1 parent e15dd14 commit 522dfa9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Query/Query.php
Expand Up @@ -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[];
Expand Down

0 comments on commit 522dfa9

Please sign in to comment.