Skip to content

Output an error when using an attribute on an abstract class #13707

@williamdes

Description

@williamdes

Feature request

For some reason they do not work on abstractions: https://phpstan.org/r/d0c0fff1-7aea-4b67-afd0-6958a3ef94b2

So should phpstan warn about this ?

When used on the non abstract class it works: https://phpstan.org/r/b7397f68-d652-448c-874a-d7e4ef2ec951

Did PHPStan help you today? Did it make you happy in any way?

Yay, every day !!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions