Zend Framework

Zend_CodeGenerator_Php_Parameter falsly assumes DocType can be used as Type-Hint

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker 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.

Issue Links

Activity

Hide
Benjamin Eberlei added a comment -

Patch for a regression introduced in ZF-7227 which was related to the named false assumption.

Show
Benjamin Eberlei added a comment - Patch for a regression introduced in ZF-7227 which was related to the named false assumption.
Hide
Benjamin Eberlei added a comment -

ZF-7884 describes the regression tests that fail due to this issue and the bugfix in Reflection which caused it.

Show
Benjamin Eberlei added a comment - ZF-7884 describes the regression tests that fail due to this issue and the bugfix in Reflection which caused it.
Hide
Benjamin Eberlei added a comment -

Fixed in trunk and merged into 1.9 release branch

Show
Benjamin Eberlei added a comment - Fixed in trunk and merged into 1.9 release branch

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: