Bug #6005

ObjectAccess::getProperty() behaves not as documented when property does not exist

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

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

100%

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

Description

The method should throw an exception as per it's documentation, but returns NULL, which is not really the same thing (think '' vs. NULL).

ObjectAccess.diff Magnifier (875 Bytes) Karsten Dambekalns, 2010-01-13 16:51


Related issues

related to TYPO3.Flow - Feature #5612: Property Mapper should be able to map to target if only a... Resolved 2009-12-03

Associated revisions

Revision b417b1a1
Added by Karsten Dambekalns over 5 years ago

[+BUGFIX] FLOW3 (Reflection): ObjectAccess::getProperty() now throws an exception when a property does not exist, fixes #6005.
[~TASK] FLOW3 (Reflection): GenericObjectValidator now checks properties even if they are not accessible normally.

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 r3739.

Also available in: Atom PDF