Actions
Bug #98631
closedCurrencyViewHelper have parameter decimals as string, int needed
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2022-10-17
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Currency ViewHelper Decimals
Complexity:
easy
Is Regression:
Sprint Focus:
Description
Class "TYPO3\CMS\Fluid\ViewHelpers\Format\CurrencyViewHelper", method "renderStatic" gets parameter "decimals" and have type string. But type int is needed in php function number_format.
Solution: cast parameter "decimals" to int on line 109: $decimals = (int)$arguments['decimals'];
Actions