Project

General

Profile

Actions

Bug #96953

closed

Deprecation notice when passing null value to HtmlViewHelper

Added by Chris Müller over 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-02-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Given the following Fluid code:

{variableWithNullValue -> f:format.html()}

throws the deprecation notice:

PHP Runtime Deprecation Notice: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/public/typo3/sysext/core/Classes/Html/HtmlParser.php line 60

Reason is in HtmlViewHelper where $renderChildrenClosure() returns null in this case and passes it further on until the notice is thrown in HtmlParser.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #100338: TypeError due to missing type cast on pageUid in TYPO3\CMS\Fluid\ViewHelpers\Uri\ActionViewHelperClosed2023-03-28

Actions
Related to TYPO3 Core - Bug #102029: Deprecation notice when using CE "Related pages" (menu_related_pages)Closed2023-09-25

Actions
Actions

Also available in: Atom PDF