Skip to content

ClassCoversExistsRule and ClassMethodCoversExistsRule do not support attributes #289

@ondrejmirtes

Description

@ondrejmirtes

These rules should read #[CoversClass] and #[CoversMethod].

Maybe there are opportunities for more rules as well: https://docs.phpunit.de/en/13.0/attributes.html#code-coverage

Once implemented, we can merge this docs update: phpstan/phpstan#14346

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions