Feature request
Report @inheritdoc when there is not PHPDoc to inherit from.
For a code:
<?php declare(strict_types = 1);
class Foo {
public function f(): int { return 0; }
}
class Bar extends Foo {
/**
* {@inheritdoc}
*/
public function f(): int { return parent::f(); }
}
(https://phpstan.org/r/763638db-4b32-4179-8e9c-70b2cba69443)
would be cool if @inheritdoc is reported as incorrect as there is nothing to inherit from.
Reactions are currently unavailable
Feature request
Report @inheritdoc when there is not PHPDoc to inherit from.
For a code:
(https://phpstan.org/r/763638db-4b32-4179-8e9c-70b2cba69443)
would be cool if @inheritdoc is reported as incorrect as there is nothing to inherit from.