Skip to content

Type from multiple Closures is not unioned #10283

@mvorisek

Description

@mvorisek

Bug report

Currently, only the first Closure is analysed.

Code snippet that reproduces the problem

https://phpstan.org/r/06a4c6f9-99ec-4f9c-a8ca-d4a14633b153

once fixed, check https://phpstan.org/r/d77648c1-796f-41b3-abc0-a548b71ff927

Expected output

no phpstan error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions