We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9f2e4 commit a7dd94fCopy full SHA for a7dd94f
lib/Core/Pagination/Pagerfanta/BaseAdapter.php
@@ -127,7 +127,7 @@ private function setExtraInfo(SearchResult $searchResult): void
127
$this->nbResults = $searchResult->totalCount;
128
$this->suggestion = new Suggestion([]);
129
130
- if ($searchResult instanceof ExtraSearchResult) {
+ if ($searchResult instanceof ExtraSearchResult && $searchResult->suggestion instanceof Suggestion) {
131
$this->suggestion = $searchResult->suggestion;
132
}
133
0 commit comments