Skip to content

random_int() with missing arguments causes exceptions #6361

@weirdan

Description

@weirdan

Bug report

random_int() call with missing arguments crashes PHPStan

Code snippet that reproduces the problem

https://phpstan.org/r/c7010dba-ec72-4310-b456-196bda5ee461

Expected output

PHPStan shouldn't crash, it should report Function random_int() invoked with 0 parameters, 2 required.

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