From ff0c7ac10410e44e2f3cababa599f6fbe45e463c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 3 Jul 2022 00:26:55 -0400 Subject: [PATCH] [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 --- cookienotice/cookienotice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');