Issues

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

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

class ConstantDefinitions
{
   const BAR = '123'
}

and then try to generate

class SomeGeneratedClass
{

   protected $foo = BAR;

...

}

I instead get

class SomeGeneratedClass
{
   protected $foo = 123;

...
}

Comments

No comments to display