Bug #6073

ObjectAccess::getProperty() causes warning with array and non-existing property

Added by Karsten Dambekalns over 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2010-01-18
Priority:Must have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Reflection
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 7
PHP Version: Complexity:
Has patch: Affected Flow version:

Description

If you use getProperty() to ask for a non-existing property on an array, the input is eventually passed to get_object_vars(), which emits a warning because it expects an object.

Associated revisions

Revision a5cea541
Added by Karsten Dambekalns over 5 years ago

[+BUGFIX] FLOW3 (Reflection): Fixed a bug that would occur if an array with a non-existing key would be passed to ObjectAccess::getProperty(), fixes #6073

History

#1 Updated by Karsten Dambekalns over 5 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3658.

Also available in: Atom PDF