Skip to content

crash with first class callable array_* functions #14550

@staabm

Description

@staabm

Bug report

because of CallLike->getArgs() is called on expressions before checking whether its a first-class callable, analyzing the given snippet url crashes

Code snippet that reproduces the problem

https://phpstan.org/r/d9e70fc7-174d-4e20-89d8-0fd67615e9a2

Expected output

phpstan should not assert/crash in the snippet

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions