diff options
Diffstat (limited to 'includes/search/PrefixSearch.php')
-rw-r--r-- | includes/search/PrefixSearch.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/search/PrefixSearch.php b/includes/search/PrefixSearch.php index c40b703d958c..def316096de9 100644 --- a/includes/search/PrefixSearch.php +++ b/includes/search/PrefixSearch.php @@ -138,7 +138,9 @@ abstract class PrefixSearch { $this->handleResultFromHook( $srchres, $namespaces, $search, $limit, $offset ) ); } - private function handleResultFromHook( $srchres, $namespaces, $search, $limit, $offset ) { + private function handleResultFromHook( + array $srchres, array $namespaces, string $search, int $limit, int $offset + ): array { if ( $offset === 0 ) { // Only perform exact db match if offset === 0 // This is still far from perfect but at least we avoid returning the |