Project

General

Profile

Actions

Bug #97751

open

ContentObjectContentObjectRenderer::cObjGetSingle always return string type although using intval config

Added by Stefan Berger over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
TypoScript
Start date:
2022-06-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Hi,

here an example typoscript config:

integer = TEXT
integer {
   value = 2
   intval = 1
}

This is ment to result an integer value and type using the method TYPO3\CMS\Frontend\ContentObjectContentObjectRenderer::cObjGetSingle.

But in the method cObjGetSingle and render of the class TYPO3\CMS\Frontend\ContentObjectContentObjectRenderer the $content variable will be concated with no need. There for it will be cast to an string type finally.

Removing that concatenations will fix this issue.

No data to display

Actions

Also available in: Atom PDF