Skip to content

Commit 7ffb6c3

Browse files
petarjakopecpspanja
authored andcommitted
NGSTACK-788 return 0 when max score is null
1 parent 6864168 commit 7ffb6c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Core/Pagination/Pagerfanta/BaseAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getMaxScore(): float
6464
{
6565
$this->initializeExtraInfo();
6666

67-
return $this->maxScore;
67+
return $this->maxScore ?? 0;
6868
}
6969

7070
public function getSuggestion(): Suggestion

0 commit comments

Comments
 (0)