Skip to content

mt_rand should have more specific return type #8272

@enumag

Description

@enumag

Bug report

When mt_rand is called with min/max constants it should return an integer range.

Code snippet that reproduces the problem

https://phpstan.org/r/b1101f6a-3e94-4877-9f2a-e2063bb2b5ab

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