From: Hypolite Petovan Date: Sat, 25 Jun 2022 08:58:59 +0000 (-0400) Subject: [qcomment] Fix wrong type hint for footer hook function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=88739fcb7073eb25eca98ed7de1cbe1151d1b602;p=friendica-addons.git [qcomment] Fix wrong type hint for footer hook function - Address https://github.com/friendica/friendica/issues/11630#issuecomment-1166188409 --- diff --git a/qcomment/qcomment.php b/qcomment/qcomment.php index 7a1c6ca6..1bde48aa 100644 --- a/qcomment/qcomment.php +++ b/qcomment/qcomment.php @@ -31,7 +31,7 @@ function qcomment_install() Hook::register('footer' , __FILE__, 'qcomment_footer'); } -function qcomment_footer(App $a, array &$b) +function qcomment_footer(App $a, string &$b) { DI::page()->registerFooterScript('addon/qcomment/qcomment.js'); }