ZF-10656: Incorrect code example, Zend_Reflection_Method does not have a getReturn method
Description
In the Zend_Reflection_Method example, http://framework.zend.com/manual/1.11/… Example #3 Performing reflection on a method Zend_Reflection_Method does not have a method getReturn()
<?php $r = new Zend_Reflection_Method($class, $name);
printf( "The method '%s' has a return type of %s", $r->getName(), $r->getReturn() );
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2010-11-08T08:46:03.000+0000
Fixed in trunk and 1.11 release branch. We should probably add the method to the class, however, as it's useful for building prototypes.