Skip to content

Range of two int<0,max> should result in int<0,max> ? #10213

@dantleech

Description

@dantleech

Bug report

Currently range(int<0,max>, int<0,max>) results in array<int,int>`

Code snippet that reproduces the problem

https://phpstan.org/r/b240efab-e9c7-4b4c-a425-55c06eab0f2a

Expected output

It should return int<0,max> I think

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

phpstan helps all the time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions