-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Rector] Apply Rector: VarConstantCommentRector #4759
[Rector] Apply Rector: VarConstantCommentRector #4759
Conversation
@paulbalandan thank you for the review. |
I realize I missed the boat on this, but this seems unnecessary. Class constants are constant, so their type is always apparent from their declaration. What does adding docblocks accomplish? |
@MGatner that mostly for consistency with other constants that has |
I would rather see a rule that pulled all |
This is example in phpDocumentor for using I will try create new custom rule for pull |
I do see that constants can have I'd say at this point it is up to us. I won't fight it if you all want them there, doesn't hurt anything. |
Add
@var
to Class Constants withVarConstantCommentRector
rector rule.Checklist: