Bug #33698

ObjectAccess::setProperty must work with numeric indexes

Added by Sebastian Kurfuerst over 1 year ago. Updated about 1 year ago.

Status:Resolved Start date:2012-02-06
Priority:Must have Due date:
Assignee:Sebastian Kurfuerst % Done:

100%

Category:Reflection
Target version:TYPO3 Flow Base Distribution - 1.1 beta 1
PHP Version: Complexity:
Has patch:No FLOW3 version affected:FLOW3 1.0.0
Votes: 0

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.

Associated revisions

Revision d473ee2f
Added by Sebastian Kurfuerst about 1 year ago

[BUGFIX] (Reflection): ObjectAccess::setProperty must work with numeric indexes

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.

Resolves: #33698
Releases: 1.1
Change-Id: I85e942ef9990cf035187a155b3f84b3a76885d4b

History

Updated by Sebastian Kurfuerst over 1 year ago

  • FLOW3 version affected changed from Git master to FLOW3 1.0.0

Updated by Gerrit Code Review over 1 year 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

Updated by Gerrit Code Review about 1 year ago

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

Updated by Sebastian Kurfuerst about 1 year ago

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

Also available in: Atom PDF