Bug #33698

ObjectAccess::setProperty must work with numeric indexes

Added by Sebastian Kurfuerst over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Must have
Category:
Reflection
Start date:
2012-02-06
Due date:
% Done:

100%

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

Description

When trying to set a value to an ArrayAccess object with a numeric index, the ObjectAccess::setProperty() method throws an exception because $propertyName must be a string.

However, we should allow integers there as well.

This changeset is needed for the refactored TYPO3 Phoenix Rendering.

Also available in: Atom PDF