Issues

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

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.