Project

General

Profile

Actions

Bug #96954

closed

Deprecation notice when passing null format to DateViewHelper

Added by Chris Müller almost 3 years ago. Updated over 1 year ago.

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

Related issues 1 (0 open1 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
Actions

Also available in: Atom PDF