ZF-7645: Zend_CodeGenerator_Php_Class assumes that Zend_Reflection_Class is always a class. So it is not possible to generate an interface.

Description

The problem is that Zend_CodeGenerator assumes that Zend_Reflection_Class is always a class not an interface. If you try to generate an interface with Zend_CodeGenerator_File parsed via Zend_Reflection_File you will encounter some problems.

Zend_CodeGenerator_File::fromReflection() does not set the filename. I think


following the line with

will fix that.

Comments

Accidentally closed