Issue Bug Closed

#98595BackendUtility::getProcessedValue PHP Runtime Deprecation Notice for flex fields with NULL pi_flexform value in PHP 8.1

Leonie Philine 10/12/22, 18:58 updated 12/06/22, 21:42

Description

$value is nullable, as pi_flexform is defined as pi_flexform mediumtext, – and thus nullable – in EXT:frontend

The offending code section in TYPO3 11.5.17 at /public/typo3/sysext/backend/Classes/Utility/BackendUtility.php:1726:

            case 'flex':
                $l = strip_tags($value);
                break;

Solution: Coerce $value to string.

Reviews 1