Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dantleech opened this issue Nov 28, 2023 · 2 comments
Closed

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

dantleech opened this issue Nov 28, 2023 · 2 comments
Labels
Milestone

Comments

@dantleech
Copy link

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!

@ondrejmirtes
Copy link
Member

Fixed phpstan/phpstan-src#2792

Copy link

github-actions bot commented Feb 7, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants