[cookienotice] Fix wrong type-hint in hook function cookienotice_page_end

- Fix "Argument 2 passed to cookienotice_page_end() must be of the type array, string given" error
pull/1329/head
Hypolite Petovan 2022-07-03 08:37:53 -04:00 committed by Michael
parent 1ba022e851
commit 6fe33eb6b0
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ function cookienotice_page_content_top(App $a, string &$b)
*
* @return void
*/
function cookienotice_page_end(App $a, array &$b)
function cookienotice_page_end(App $a, string &$b)
{
$text = (string)DI::config()->get('cookienotice', 'text', DI::l10n()->t('This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.'));
$oktext = (string)DI::config()->get('cookienotice', 'oktext', DI::l10n()->t('OK'));