In #979 (comment) :
Just thinking.... maybe we should create a sniff that checks for calls to any of the deprecated....() functions and ensures that there is a @deprecated tag and visa versa ?
Some ideas for what the sniff should check:
- That a
_deprecated_...() function is called whenever a @deprecated tag is encountered.
- That a
@deprecated tag is used whenever a _deprecated_...() function is called.
- That the correct flavour of
_deprecated_...() function is called.
- That the version nrs in the tag and the function parameter are in line.
- That the alternative listed in the tag and the function parameter are in line.
- That
__METHOD__ is used for methods, __FUNCTION__ for functions.
I propose the sniff be added to core based on all the issues related to this we've identified in PR #979.
In #979 (comment) :
Some ideas for what the sniff should check:
_deprecated_...()function is called whenever a@deprecatedtag is encountered.@deprecatedtag is used whenever a_deprecated_...()function is called._deprecated_...()function is called.__METHOD__is used for methods,__FUNCTION__for functions.I propose the sniff be added to core based on all the issues related to this we've identified in PR #979.