Project

General

Profile

Actions

Bug #98924

closed

Harden LocalizationUtility with arguments

Added by Georg Ringer about 2 years ago. Updated about 2 years 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 3 (0 open3 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
Related to TYPO3 Core - Bug #93346: LocalizationUtility::translate throws uncaught exception, if the arguments contains an empty arrayClosed2021-01-22

Actions
Actions

Also available in: Atom PDF