Skip to content

is_callable narrows down class name as object Act 2 #4573

@szepeviktor

Description

@szepeviktor

Success! There is a test case linked below.

Bug report

After is_callable is true PHPStan thinks $tax must not be a string/class name.

Code snippet that reproduces the problem

https://phpstan.org/r/96ccd3bf-50d9-4775-a6f2-0f1f82180f5f

Expected output

No error.

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