flux
flux copied to clipboard
php 8
Is there a possibility to upgrade flux to run under php 8?
Hi,
Are you talking about the PHP “Undefined array key” error (https://www.php.net/manual/fr/migration80.incompatible.php) ?
I can run LTS 11.5 with flux 9.6.1 development and PHP 8.0.8 only in production mode (no TYPO3 debug activated). With debug activated, TYPO3 throws an exception in flux/Classes/Provider/PageProvider.php line 386.
Also in Class: ContentTypeBuilder PHP 8.1
PHP Warning: Undefined array key "class" in /var/www/html/xxx/public/typo3conf/ext/flux/Classes/Integration/ContentTypeBuilder.php line 194
Work is underway to add the necessary checks/null-coalesce statements when array keys may or may not be present. Even so, I would strongly recommend setting the TYPO3 configuration option exceptionalErrors to a value that excludes any E_NOTICE levels, e.g. 4096. Not even the TYPO3 core itself is safe from E_NOTICE issues, even in version 11.5.