Is it possible to link to another method/class/property/etc. inside my project inline inside the @deprecated
tag? Like this:
/**
* Method description
* @deprecated 1.0 Reason for deprecation, use {@link newMethod()} instead!
* @param string $str
* @param string|null $str2
* @return bool
*/
public function method($str, $str2) {
// TODO: Code...
}
...
?
According to PHPdoc.org, you could use the @see tag for that.
Also, PHPdoc.org recommends to use @see in case of a @deprecated method:
But
@see
is not always required, for example "Link to another method in @param tag's description?"