From: Hypolite Petovan Date: Sun, 3 Jul 2022 04:26:55 +0000 (-0400) Subject: [cookienotice] Fix wrong type-hint in hook function cookienotice_page_content_top X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ff0c7ac10410e44e2f3cababa599f6fbe45e463c;p=friendica-addons.git [cookienotice] Fix wrong type-hint in hook function cookienotice_page_content_top - Fix "Argument 2 passed to cookienotice_page_content_top() must be of the type array, string given" error --- diff --git a/cookienotice/cookienotice.php b/cookienotice/cookienotice.php index 5364573c..d6e71cf0 100644 --- a/cookienotice/cookienotice.php +++ b/cookienotice/cookienotice.php @@ -82,7 +82,7 @@ function cookienotice_addon_admin_post(App $a) * * @return void */ -function cookienotice_page_content_top(App $a, array &$b) +function cookienotice_page_content_top(App $a, string &$b) { DI::page()->registerStylesheet(__DIR__ . '/cookienotice.css'); DI::page()->registerFooterScript(__DIR__ . '/cookienotice.js');