ZF-7886: Zend_CodeGenerator_Php_Parameter falsly assumes DocType can be used as Type-Hint
Description
Zend_CodeGenerator_Php_Parameter falsly assumes DocType can be used as Type-Hint
This issue is related to a bugfix in Zend_Reflection_Parameter in r18073 in relation with Ticket ZF-7227.
A regression case now occurs for CodeGenerator because an @param int $var is rewritten back on generate to be a typehint "int".
The type in code generator is falsly used from the docblock type and should be the real type hint to make code generation from reflection a bijective function.
Comments
Posted by Benjamin Eberlei (beberlei) on 2009-09-18T07:36:08.000+0000
Patch for a regression introduced in ZF-7227 which was related to the named false assumption.
Posted by Benjamin Eberlei (beberlei) on 2009-09-18T07:37:21.000+0000
ZF-7884 describes the regression tests that fail due to this issue and the bugfix in Reflection which caused it.
Posted by Benjamin Eberlei (beberlei) on 2009-09-18T11:15:53.000+0000
Fixed in trunk and merged into 1.9 release branch