Skip to content

PHPStan breaks with larger range of values in range() function #4207

@ralfkuehnel

Description

@ralfkuehnel

Bug report

PHPStan breaks when the range of (integer) values in the range() function gets higher than approximately 5000.

Code snippet that reproduces the problem

$numbers = range(1, 10000);

It's broken since the release of PHPStan 0.12.55 and i think it was introduced within this change:
phpstan/phpstan-src@67a905a

Expected output

PHPStan should not break.

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