Bug #46491

ObjectAccess::getProperty() does not work for getters in ArrayAccess

Added by Bastian Waidelich over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Must have
Category:
Reflection
Target version:
-
Start date:
2013-03-21
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

#42723 introduced a regression that prevents custom getters in ArrayAccess objects to be called via ObjectAccess::getProperty()

Code to reproduce the issue:

$arrayObject = new \ArrayObject();
var_dump($arrayObject->getIteratorClass());
var_dump(\TYPO3\Flow\Reflection\ObjectAccess::getProperty($arrayObject, 'iteratorClass'));

Should output "ArrayIterator" twice, but the second time an exception #1263391473: The property "iteratorClass" on the subject was not accessible is thrown.


Related issues

Related to TYPO3.Flow - Bug #42723: Reflection\ObjectAccess consumes to much processing timeResolved2012-11-06

Actions

Also available in: Atom PDF