Issues

ZF-7886: Zend_CodeGenerator_Php_Parameter falsly assumes DocType can be used as Type-Hint

Issue Type: Bug Created: 2009-09-18T07:28:06.000+0000 Last Updated: 2009-09-18T11:15:53.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)

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

Related issues: - ZF-7884

Attachments: - patch_ZF7886.diff

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

Have you found an issue?

See the Overview section for more details.

Copyright

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

Contacts