Project

General

Profile

Actions

Bug #98631

closed

CurrencyViewHelper have parameter decimals as string, int needed

Added by Urs Maag about 2 years ago. Updated over 1 year ago.

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'];


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #99283: number_format require integer as decimal Closed2022-12-06

Actions
Actions

Also available in: Atom PDF