Skip to content

Incorrect return type on is_callable #12573

@mvhirsch

Description

@mvhirsch

Bug report

PHPStan tells me this function exists:

$func = 'setproctitle';
\PHPStan\dumpType(is_callable($func)); // returns true

But it doesn't 🤷

Code snippet that reproduces the problem

https://phpstan.org/r/c891dbe6-28c6-45e8-9960-32e325e10d44

Expected output

// return false

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

It makes my day wonderful. 😍

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