]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseSearch.php
Merge remote-tracking branch 'upstream/2022.09-rc' into worker-timeout
[friendica.git] / src / Module / BaseSearch.php
index 3497ad9b1d945365bee0e9bbc3bf2cfb355d2422..f1c9f451ec1e7947db327fb7746a2b2010c9f1cc 100644 (file)
@@ -47,7 +47,7 @@ class BaseSearch extends BaseModule
         * @throws HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
-       public static function performContactSearch($search, $prefix = '')
+       public static function performContactSearch(string $search, string $prefix = ''): string
        {
                $config = DI::config();
 
@@ -113,7 +113,7 @@ class BaseSearch extends BaseModule
         * @throws HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
-       protected static function printResult(ResultList $results, Pager $pager, $header = '')
+       protected static function printResult(ResultList $results, Pager $pager, string $header = ''): string
        {
                if ($results->getTotal() == 0) {
                        notice(DI::l10n()->t('No matches'));