Project

General

Profile

Actions

Bug #96354

closed

Deprecation notice in ContentObjectRenderer (PHP 8.1)

Added by Chris Müller almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96571: StdWrap if.isNull not working anymore in 11.5.5Closed2022-01-18

Actions
Actions

Also available in: Atom PDF