Feature #6774

Improve error message in Property Mapper if type hint of method parameter is invalid

Added by Robert Lemke over 5 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2010-03-10
Priority:Should have Due date:
Assigned To:Robert Lemke % Done:

100%

Category:Property
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 8 Estimated time:1.00 hour
PHP Version: Complexity:
Has patch:

Description

If the type hint or doc comment of a parameter / property of the target object is invalid, the property mapper doesn't notice but just passes it to Utility\TypeHandling which in turn throws an InvalidArgumentException.

This exception could be caught and a more meaningful mapping error issued by the property mapper.

Associated revisions

Revision fbc770ea
Added by Robert Lemke over 5 years ago

[+FEATURE] FLOW3 (Property): The property mapper now issues a meaningful mapping error if the type hint or doc comment of a target setter is invalid. Resolves #6774

History

#1 Updated by Robert Lemke over 5 years ago

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

Applied in changeset r3925.

Also available in: Atom PDF