Skip to content

[Prophecy][False Positive] Argument::that problems #72

@mr-feek

Description

@mr-feek

InvalidArgument - tests/Feature/Cart/CartItems/GSuiteCartItemTest.php:87:122 - Argument 1 of Prophecy\Argument::that expects callable():bool, Closure(mixed):bool provided

The callable passed to Argument::that is allowed to have parameters I believe. If I delete the stub entirely, my test passes however then we lose the benefit of the bool typehint.

How do we inform psalm that any # of mixed params can be parameters of the callable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions