Actions
Bug #96354
closedDeprecation notice in ContentObjectRenderer (PHP 8.1)
Start date:
2021-12-14
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
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.
Actions