Skip to content

PHP Runtime Deprecation Notice: Automatic conversion of false to array is deprecated

Install the extension lfeditor on TYPO3 v11.5.36 with PHP 8.2 and when I click on the TYPO3 BE module, I have the following exception :

` PHP Runtime Deprecation Notice: Automatic conversion of false to array is deprecated in /app/public_html/typo3conf/ext/lfeditor/Classes/Controller/AbstractController.php line 315 in /app/public_html/typo3/sysext/core/Classes/Error/ErrorHandler.php line 137

    }

    $message = self::ERROR_LEVEL_LABELS[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine;
    if ($errorLevel & $this->exceptionalErrors) {
        throw new Exception($message, 1476107295);
    }

    $message = $this->getFormattedLogMessage($message);

at TYPO3\CMS\Core\Error\ErrorHandler->handleError(8192, 'Automatic conversion of false to array is deprecated', '/app/public_html/typo3conf/ext/lfeditor/Classes/Controller/AbstractController.php', 315) in /app/public_html/typo3conf/ext/lfeditor/Classes/Controller/AbstractController.php line 315

 }
} catch (LFException $e) {
 continue;
}
$extensions[$extAddress] = $extension;

if ($isExtensionGroupStart) {
 $extensions[$extAddress . 'DelimiterAfter'] = [
  'extLabel' => '======',

`

this exception occurred because $extensions is set to false at line $extensions = $cacheManager->getCache('lfeditor_select_options_cache')->get('extensionAndLangFileOptions');

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information