Bug #33698

ObjectAccess::setProperty must work with numeric indexes

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

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

100%

Category:Reflection
Target version:TYPO3 Flow Base Distribution - 1.1 beta 1
PHP Version: Complexity:
Has patch:No Affected Flow version:FLOW3 1.0.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 over 3 years 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

#1 Updated by Sebastian Kurfuerst over 3 years ago

  • Affected Flow version changed from Git master to FLOW3 1.0.0

#2 Updated by Gerrit Code Review over 3 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 3 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 3 years ago

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

Also available in: Atom PDF