ZF-7782: Fatal Error when calling Zend_Reflection_Parameter::getClass on parameter without class typehint
Description
The following Test-Case gives a fatal error:
public function testClassReturn_NoClassGiven_ReturnsNull()
{
$parameter = new Zend_Reflection_Parameter(array('Zend_Reflection_TestSampleClass2', 'getProp2'), 'param1');
$this->assertNull($parameter->getClass());
}
For consistency with ReflectionParameter, getClass has to return null in this case.
Comments
Posted by Benjamin Eberlei (beberlei) on 2009-09-06T05:58:37.000+0000
Fixed in trunk and merged back into 1.9 release branch