-
Notifications
You must be signed in to change notification settings - Fork 932
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
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: