mesour-intellij-plugins / latte-pro-issues

2 stars 0 forks source link

Backed Enum value is treated as undefined #127

Open sasule opened 9 months ago

sasule commented 9 months ago

Describe the bug Getting enum value (e.g. for use as array key or link parameter) does not work.

Environment (please complete the following information):

Code

enum Status : string {
     case PUBLISHED => 'published',
     case HIDDEN => 'hidden',
}
{* This produces warning  "value" is undefined*}

<a n:href=":Default:Foo:bar, fooParamerer => Status::PUBLISHED->value">...</a>
{var string $value = Status::PUBLISHED->value} 
mesour commented 1 month ago

@sasule it will be fixed in 2.0

image