Open christophrunkel opened 8 months ago
Hi @christophrunkel Could you please check this? I set the default value to an empty string instead of null. The default value which is passed into the settings is already an empty string, so this made more sense. It is not published to the TER, if you are not using composer, I could send you a zip via Slack (treupo).
Bug Report
Controller causes php warnings in PHP 8.2
Current Behavior Undefined array key "header" in /html/typo3/typo3conf/ext/wacon_cookie_management/Classes/Controller/CookieController.php line 66
Environment
Possible Solution
Adding ?? null in line 66 ff fixes the problem.
$header = $this->settings['header'] ?? null; $this->view->assign('header', $header); $teaser = $this->settings['teaser'] ?? null; $this->view->assign('teaser', $teaser); $linktext = $this->settings['linktext'] ?? null; $this->view->assign('linktext', $linktext); $imprint = $this->settings['imprint'] ?? null; $this->view->assign('imprint', $imprint); $dataprotection = $this->settings['dataProtection'] ?? null; $this->view->assign('dataprotection', $dataprotection ); $nurlink = $this->settings['nurLink'] ?? null;