Actions
Bug #79694
closedPHP warning on using inline Fluid syntax with object
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2017-02-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint
Description
Using the tag-based view-helper <f:format.date date="{user.dateOfBirth}" />
works like a charm.
However, using {f:format.date(date:'{user.dateOfBirth}')}
leads to the following PHP warning:
The property dateOfBirth
is a \DateTime
object in this example.
#1476107295: PHP Warning: htmlspecialchars() expects parameter 1 to be string, object given in ~/vendor/typo3fluid/fluid/src/Core/Parser/SyntaxTree/EscapingNode.php line 45
Working on dev-master with commit 12fd6b6ae7a14ca22d9f0cfa6cf9bcaa62046f4a
Actions