Issue Bug Closed

#96953Deprecation notice when passing null value to HtmlViewHelper

Chris Müller 02/17/22, 16:23 updated 06/05/23, 09:31

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.

Reviews 2