Issues

ZF-11692: Missing constants when using Zend_CodeGenerator_Php_Class::fromReflection

Description


/**
 * Class Bug
 */
class Bug
{
    const TEST = 'This constant will be missed';
}

$classBug = Zend_CodeGenerator_Php_Class::fromReflection(new Zend_Reflection_Class('Bug'));

echo $classBug->setSourceDirty()->generate();

Output:

/**
 * Class Bug
 *
 */
class Bug
{


}

Comments

No comments to display