Issues

ZF-12110: Zend code generator replaces constants names with constant values

Issue Type: Bug Created: 2012-03-21T12:15:37.000+0000 Last Updated: 2012-03-21T12:21:24.000+0000 Status: Open Fix version(s): Reporter: Ulrik Street-Poulsen (ulrik-street-poulsen) Assignee: Ralph Schindler (ralph) Tags: - Zend_CodeGenerator

Related issues: Attachments:

Description

When using the Zend code generator I am seeing an issue where the code generator will replace constants names with constant values when setting a property to the constant.

For example if we have

<pre class="literal">
class ConstantDefinitions
{
   const BAR = '123'
}

and then try to generate

<pre class="literal">
class SomeGeneratedClass
{

   protected $foo = BAR;

...

}

I instead get

<pre class="literal">
class SomeGeneratedClass
{
   protected $foo = 123;

...
}

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