-
Notifications
You must be signed in to change notification settings - Fork 59
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
linter: expanded deprecated for calling const, property and instances of classes #1248
base: master
Are you sure you want to change the base?
Conversation
9b6d7b5
to
82a5b14
Compare
82a5b14
to
27506c0
Compare
Level notice for deprecated and deprecatedUntagged |
27506c0
to
2ff400c
Compare
2ff400c
to
f21c8de
Compare
func (d *rootWalker) parsePHPDocVar(doc phpdoc.Comment) (typesMap types.Map) { | ||
for _, part := range doc.Parsed { | ||
part, ok := part.(*phpdoc.TypeVarCommentPart) | ||
func (d *rootWalker) parsePHPDocVar(doc phpdoc.Comment) (typesMap types.Map, deprecationInfo meta.DeprecationInfo) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DeprecationInfo
should not be part of parsePHPDocVar
, even the function name says that on parses var
tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case the contex of Var - variable (property). See parseConstPHPDoc, parseClassPHPDoc: in all cases we are parse everything
Now we have deprecated and deprecatedUntagged rule that could be apply for methods and functions.
I expanded it for calling const, property and instances of classes