Project

General

Profile

Actions

Bug #78270

closed

\TYPO3\CMS\Extbase\Reflection\ObjectAccess::getGettablePropertyNames returns wrong property names

Added by Nicole Cordes over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Extbase
Target version:
-
Start date:
2016-10-12
Due date:
% Done:

100%

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

Description

Requirements to reproduce:

1) Fluid template with f:cObject and an object as data usage
<f:cObject typoscriptObjectPath="lib.someLibObject" data="{object}" />

2) Object has an property which is annotated as DateTimeZone object

Expected result:
The object should be converted into an array typo3/sysext/fluid/Classes/ViewHelpers/CObjectViewHelper.php:135

Actual result:
A warning is triggered because DateTimeZone::getOffset needs a parameter

Currently Extbase slightly require a getter method without any parameter. But it can happen that on some objects even the "magic" methods have parameter.

Actions

Also available in: Atom PDF