Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twig. constant() does not recognize enums. #2049

Closed
berkut1 opened this issue Dec 18, 2022 · 0 comments
Closed

Twig. constant() does not recognize enums. #2049

berkut1 opened this issue Dec 18, 2022 · 0 comments
Labels

Comments

@berkut1
Copy link

berkut1 commented Dec 18, 2022

Hello,
Twig constant() doesn't recognized the Enum.
How it works with class constants:
const_class

but doesn't work with enum class. It doesn't work at all, you can't even jump into enum case.

I use constant(), because of that twigphp/Twig#3681

Thanks.

@Haehnchen Haehnchen added the fixed label Apr 7, 2024
Haehnchen added a commit that referenced this issue Apr 7, 2024
#2249 #2049 rebuild Twig constant completion and navigation and supporting enums
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants