Skip to content

Arguments expecting callables should describe the full signature of callables #252

Closed
@stof

Description

@stof

composer/composer#11619 is caused by a wrong usage of the $resolve callback passed as argument to the $resolver callable of the Promise constructor. In version 3, it cannot be called without argument anymore.
However, as callable signatures are not described in the argument types, static analysis tools are unable to detect the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions