Skip to content

is_a: if third argument is false then do not allow string in first argument #4371

Closed
@eigan

Description

@eigan

Feature request

https://www.php.net/manual/en/function.is-a.php

If this parameter set to false, string class name as object is not allowed.

PHPStan could report that a string is sent in this case:
https://phpstan.org/r/44b40ab5-7c7f-4ced-8048-e084d3d63f1d

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions