Skip to content

Incorrect types when using Amp\Promise\all() #3407

@enumag

Description

@enumag

It's very nice that Psalm has support for Amphp. However I found out that whenever I use [$x, $y] = yield \Amp\Promise\all([ $promiseForX, $promiseForY ]) then the $x variable has incorrect type detected, causing various false-positives further in the code.

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