Skip to content

assert_options fails with expecting callable in 8.0 #3944

@marc-mabe

Description

@marc-mabe

Bug report

assert_options should expect a callable in case of ASSERT_CALLBACK only.

Code snippet that reproduces the problem

https://phpstan.org/r/d8a398c6-8e65-4a2a-8bc1-b5f7f2669d2c

Expected output

There should not be an error expecting a callable if assert_options wasn't called with ASSERT_CALLBACK.

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