Project

General

Profile

Actions

Bug #105588

closed

Empty Fluid template produces PHP error

Added by Simon Praetorius 10 days ago. Updated 4 days ago.

Status:
Resolved
Priority:
Should have
Category:
Fluid
Target version:
-
Start date:
2024-11-13
Due date:
% Done:

100%

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

Description

Currently, Fluid Standalone's render method doesn't always return a string: If the template only contains a number, the result will be an integer. If the template is empty, it produces null.

While this should be fixed in Standalone in a future (major) release, this can lead to problems in the Core. To prevent at least some of the issues, the Fluid result should be casted to string.

https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid/Classes/View/FluidViewAdapter.php#L51

Actions

Also available in: Atom PDF