Actions
Bug #96954
closedDeprecation notice when passing null format to DateViewHelper
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
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:
{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
Actions