Issue Bug Closed

#96954Deprecation notice when passing null format to DateViewHelper

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

Description

Given the following Fluid code:

{f:format.date(date: "@1645115363", format:"{undefinedVariable}")}

throws the deprecation notice:

PHP Runtime Deprecation Notice: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/public/typo3/sysext/fluid/Classes/ViewHelpers/Format/DateViewHelper.php line 167

Reviews 2