Skip to content

Parameter #1 $p of method f() expects Closure(U): R, Closure(U): R given. #6828

@mathroc

Description

@mathroc

Bug report

The exact error message is:

Parameter #1 $c of method Option::map() expects Closure(U): Result<U, mixed>, Closure(U): Result<U, mixed> given.

It looks like the error message is saying that everything is fine ^^

Code snippet that reproduces the problem

https://phpstan.org/r/ce2c98eb-17a1-4e8d-a350-a71f8e877826

Expected output

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

It definitely helped! I'm glad we have PHPStan when working with PHP :)

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