#96354Deprecation notice in ContentObjectRenderer (PHP 8.1)
Description
PHP Runtime Deprecation Notice: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/public/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 1316
The problem occurs in line 1316, but $content was set to “null” in line 1341:
$content = $this->{$functionName}($content, $singleConf);
where $functionName is “stdWrap_field”
So, stdWrap_field() should return always a string as already annotated in the docblock.