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 #1

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

Actions #2

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

Actions #3

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

Actions #4

Updated by Chris Müller almost 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Nikita Hovratov almost 3 years ago

  • Related to Bug #96571: StdWrap if.isNull not working anymore in 11.5.5 added
Actions #6

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF