Bug #96354
closedDeprecation notice in ContentObjectRenderer (PHP 8.1)
100%
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.
Updated by Gerrit Code Review almost 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72659
Updated by Gerrit Code Review almost 3 years ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72659
Updated by Gerrit Code Review almost 3 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72677
Updated by Chris Müller almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8c7227c13d3bb06e63b2785c133d37586ce62b9b.
Updated by Nikita Hovratov almost 3 years ago
- Related to Bug #96571: StdWrap if.isNull not working anymore in 11.5.5 added