[various] Fix hook function type-hints

- Address https://friendica.xyz/display/adf174d5-1562-b8d8-53d7-ffd690518338
This commit is contained in:
Hypolite Petovan 2022-06-26 19:36:45 -04:00
parent de4c972501
commit 90dec95b6e
4 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ function pageheader_install() {
Hook::register('page_content_top', __FILE__, 'pageheader_fetch');
}
function pageheader_addon_admin(App &$a, &$s)
function pageheader_addon_admin(App &$a, string &$s)
{
if (!$a->isSiteAdmin()) {
return;
@ -52,7 +52,7 @@ function pageheader_addon_admin_post(App $a)
}
}
function pageheader_fetch(App $a, array &$b)
function pageheader_fetch(App $a, string &$b)
{
if(file_exists('pageheader.html')){
$s = file_get_contents('pageheader.html');