Actions
Bug #96953
closedDeprecation notice when passing null value to HtmlViewHelper
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.
Actions