ZF-7884: testFromReflection_GetWithNativeType(Zend_CodeGenerator_Php_ParameterTest)
Description
{panel} 2) testFromReflection_GetWithNativeType(Zend_CodeGenerator_Php_ParameterTest) Failed asserting that is not equal to . {panel}
{panel} 2) testFromReflection_GetWithNativeType(Zend_CodeGenerator_Php_ParameterTest) Failed asserting that is not equal to . {panel}
Comments
Posted by Benjamin Eberlei (beberlei) on 2009-09-18T07:10:01.000+0000
This is related to a commit r18073 for ticket ZF-7227
Posted by Benjamin Eberlei (beberlei) on 2009-09-18T07:25:18.000+0000
Found the issue Zend_CodeGenerator_Php_Parameter falsely assumes that the DocBlock Type is the actual type which should be hinted at. This two parts have to be seperated, since PHP only supports hints for array and PHP classes.
Furthermore currently the docblock type has higher precedence than the actual type-hint and it might be that actual type hints are generated from the docblock into the parameter although they have not been present before:
I think this currently does not work!
Posted by Benjamin Eberlei (beberlei) on 2009-09-18T11:17:28.000+0000
Fixed with commit r18258 and r18259