Issues

ZF-7633: Zend_Reflection_Method doesn't implement getReturn()

Issue Type: Bug Created: 2009-08-19T05:39:17.000+0000 Last Updated: 2012-11-20T21:38:16.000+0000 Status: Open Fix version(s): Reporter: Carlton Gibson (carlton) Assignee: None Tags: - Zend_Reflection

Related issues: Attachments: - ZF-7633.patch

Description

Comments

Posted by Ralph Schindler (ralph) on 2009-08-19T07:47:18.000+0000

What exactly is getReturn(), what purpose does it serve?

Posted by Carlton Gibson (carlton) on 2009-08-19T08:26:38.000+0000

It gets the return type of the method. It's implemented by Zend_Reflection_Function (which Zend_Reflection_Method is meant to follow, bar getDefiningClass() ). One of the examples also uses it. (Trouble is you run the example and, obviously you get a fatal error.)

If it were not for following Zend_Reflection_Function, getReturnType() might be better but I think in context it is clear enough.

Posted by Christopher Thomas (cwt137) on 2010-01-21T06:44:04.000+0000

Hello. Attached is a patch with the method implemented. It also includes a unit test.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts