Bug #6005

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

Added by Karsten Dambekalns almost 10 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Should have
Category:
Reflection
Start date:
2010-01-13
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

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 View (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 setter exists Resolved 2009-12-03

Associated revisions

Revision b417b1a1 (diff)
Added by Karsten Dambekalns almost 10 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 almost 10 years ago

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

Applied in changeset r3739.

Also available in: Atom PDF