Skip to content

callable verified by method_exists is not detected as callable in function scope #4510

@boesing

Description

@boesing

Bug report

callables which are validated within a function scope are not detected as callables.
Only in global scope a callable is properly detected.

Code snippet that reproduces the problem

https://phpstan.org/r/27d71e38-7ede-4514-899f-2038dca94390

Expected output

No errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions