Actions
Bug #105588
closedEmpty Fluid template produces PHP error
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