Skip to content

Template name is wrongly propagated to the type #11079

@simPod

Description

@simPod

Bug report

There's a @template V in the function and phpstan now creates weird int&V intersection types.

Code snippet that reproduces the problem

https://phpstan.org/r/90c5358a-48f2-4fdb-88bf-33322656ba21

Expected output

No errors.

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

No response

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