Bug #46491

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

Added by Bastian Waidelich about 8 years ago. Updated about 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
#1

Updated by Gerrit Code Review about 8 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19129

#2

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19129

#3

Updated by Bastian Waidelich about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#4

Updated by Gerrit Code Review about 8 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch composer has been pushed to the review server.
It is available at https://review.typo3.org/19375

#5

Updated by Bastian Waidelich about 8 years ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF