FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Report "@inheritdoc" when there is not PHPDoc to inherit from · Issue #5561 · phpstan/phpstan · GitHub

Report "@inheritdoc" when there is not PHPDoc to inherit from #5561

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL