Skip to content

The same issue with no type specified reported twice using promoted properties #7662

@fluffycondor

Description

@fluffycondor

Bug report

It's not quite a bug I guess, but in this case if someone doesn't specify a generic type in one line, they get two errors for this line. Maybe these errors can be squashed in one?

Code snippet that reproduces the problem

https://phpstan.org/r/2cc67444-05ff-4400-b1e9-969aa5072bf1

Expected output

Only one error.

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

💞

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions