Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.9.0, 1.9.1, 1.9.2
-
Fix Version/s: 1.9.3
-
Component/s: Zend_CodeGenerator
-
Labels:None
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.
Attachments
Issue Links
| This issue is related to: | ||||
| ZF-7884 | testFromReflection_GetWithNativeType(Zend_CodeGenerator_Php_ParameterTest) |
|
|
|
Patch for a regression introduced in
ZF-7227which was related to the named false assumption.ZF-7227which was related to the named false assumption.