ZF-7782: Fatal Error when calling Zend_Reflection_Parameter::getClass on parameter without class typehint

Issue Type: Bug Created: 2009-09-06T05:54:44.000+0000 Last Updated: 2009-09-06T05:58:44.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)

Reporter: Benjamin Eberlei (beberlei) Assignee: Benjamin Eberlei (beberlei) Tags: - Zend_Reflection

Related issues: Attachments:


The following Test-Case gives a fatal error:

<pre class="highlight">
    public function testClassReturn_NoClassGiven_ReturnsNull()
        $parameter = new Zend_Reflection_Parameter(array('Zend_Reflection_TestSampleClass2', 'getProp2'), 'param1');


For consistency with ReflectionParameter, getClass has to return null in this case.


Posted by Benjamin Eberlei (beberlei) on 2009-09-06T05:58:37.000+0000

Fixed in trunk and merged back into 1.9 release branch

Have you found an issue?

See the Overview section for more details.


© 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.