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

Fixed in trunk and merged back into 1.9 release branch