Skip to content

Wrong return type in template function with optional named parameters #5262

@mtorromeo

Description

@mtorromeo

Bug report

It seems like named parameter confuse phpstan when the type uses a template and an optional parameter is skipped in the function call.

I'm sure the playground can illustrate it better than I can describe it with words.

Code snippet that reproduces the problem

https://phpstan.org/r/1c804a32-98ca-4621-bc9e-76e6cf804857

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions