Project

General

Profile

Actions

Bug #98924

closed

Harden LocalizationUtility with arguments

Added by Georg Ringer over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2022-10-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The default value of arguments of TranslateViewHelper has been switched from null to [].
To avoid exceptions, when no arguments are given, an additional check is needed.

the error occurs if a string like '%m/%d/%Y' is added to be translated but no arguments are provided

ArgumentCountError
4 arguments are required, 1 given

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Task #96473: Allow ServerRequestInterface in ext:fluidClosed2022-01-06

Actions
Related to TYPO3 Core - Bug #99264: ArgumentCountError by usage of f:translate viewhelperClosed2022-12-04

Actions
Actions

Also available in: Atom PDF