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

Is annotation of class constants supported in v4? #1082

Closed
sadikinfosec opened this issue Jan 22, 2022 · 2 comments
Closed

Is annotation of class constants supported in v4? #1082

sadikinfosec opened this issue Jan 22, 2022 · 2 comments

Comments

@sadikinfosec
Copy link

As far as I can tell it doesn't seem to be, but I wanted to double-check.

The use case here is there's a class constant thats an associative array with string keys and string values, effectively functioning as a makeshift string enum. The values are part of the api documentation so it seems to make the most sense to have the corresponding comment block adjacent to the class constant, but this doesn't seem to be recognized in v4.

The workaround I chose was to put it on a nearby, related class method instead, after which it seems to show up in the generated json as expected

@DerManoMann
Copy link
Collaborator

Hmmm, it's an idea. Could you perhaps post a little example of how that would look?

@DerManoMann
Copy link
Collaborator

Fixed via #1193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants