Skip to content

@param with union type of T|Closure(): T returns false positive #7049

@taka-oyama

Description

@taka-oyama

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/53bef65c-5e31-464b-8d62-3a4cdd778b2a

Expected output

No errors.

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

This helped me find so many bugs! Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions