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.

#2

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Accepted to Under Review

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

#3

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/8857

#4

Updated by Sebastian Kurfuerst over 9 years ago

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

Also available in: Atom PDF