Skip to content

Allow comparisons between Number and int #13001

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

Open
vudaltsov opened this issue May 13, 2025 · 1 comment · May be fixed by phpstan/phpstan-src#3995
Open

Allow comparisons between Number and int #13001

vudaltsov opened this issue May 13, 2025 · 1 comment · May be fixed by phpstan/phpstan-src#3995
Labels
Milestone

Comments

@vudaltsov
Copy link

Bug report

https://3v4l.org/UFLV9

Code snippet that reproduces the problem

https://phpstan.org/r/1b405f28-7fe5-4792-b693-b35a3adab29a

Expected output

No errors.

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

No response

@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone May 13, 2025
@ondrejmirtes
Copy link
Member

/cc @schlndh can you please investigate if this is something we should also call OperatorTypeSpecifyingExtensions for, or how to prevent this issue? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants