Issues

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

Issue Type: Bug Created: 2011-08-23T15:49:33.000+0000 Last Updated: 2011-08-30T21:54:45.000+0000 Status: Open Fix version(s): Reporter: Nik Rush (nik rush) Assignee: Ralph Schindler (ralph) Tags: - Zend_CodeGenerator

Related issues: Attachments:

Description

<pre class="highlight">
/**
 * 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:

<pre class="literal">
/**
 * Class Bug
 *
 */
class Bug
{


}

Comments

No comments to display

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