Skip to content

Narrowed template on an interface is ignored when generics is not specified #9045

@pbourdet

Description

@pbourdet

Bug report

See title

Code snippet that reproduces the problem

https://phpstan.org/r/ef8e8adc-afc3-4ce2-ac80-b85233de199c

Fixed with a unecessecary @param doc :
https://phpstan.org/r/9e9b86c2-5a13-4213-afc1-58b5c22be9ca

Expected output

The first snippet should not raise any errors

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

PHPStan helps me night and day ❤️

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions