Skip to content

Commit a14115b

Browse files
authored
Fix a PHP notice (#10)
1 parent e8c0515 commit a14115b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ public function searchQueryArgs( $query ) {
463463
array_merge(
464464
trim($queryWithFilters) === '' ? array( $this->indexName ) : array( $this->indexName, $queryWithFilters ),
465465
explode( ' ', $this->limit ),
466-
explode( ' ', $this->slop ),
466+
explode( ' ', $this->slop ?? '' ),
467467
array( $this->verbatim, $this->withScores, $this->withSortKey, $this->withPayloads, $this->noStopWords, $this->noContent),
468468
explode( ' ', $this->inFields),
469469
explode( ' ', $this->inKeys ),

0 commit comments

Comments
 (0)