I have a ton of lines of PHP. Many methods contain docblocks that are actually inherited from the method they override.
Example:
MyBaseClass {
/**
* @param string $first - first name
* @param string $last - last name
*/
protected function MyMethod($first, $last)
{
}
/**
* @return bool
*/
public function MyMethod2($first, $last)
{
}
}
MyChildClass extends MyBaseClass {
/**
* @param string $first - first name
* @param string $last - last name
*/
protected function MyMethod($first, $last)
{
}
/**
* @return bool
*/
public function MyMethod2($first, $last)
{
}
}
Basically, I would like the docblocks in the child class to read:
/**
* @inheritDoc
*/
Because as I understand it this is best practice. If this is best practice, can someone recommend me what program / trick / code I can use to change all these inherited docs into the basic one above?