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

Strict comparison of multiple arrays #7257

Closed
SendiMyrkr opened this issue May 18, 2022 · 1 comment · Fixed by phpstan/phpstan-src#1493
Closed

Strict comparison of multiple arrays #7257

SendiMyrkr opened this issue May 18, 2022 · 1 comment · Fixed by phpstan/phpstan-src#1493
Labels
Milestone

Comments

@SendiMyrkr
Copy link

Bug report

When i use following code than i get an error message "Strict comparison using === between NEVER and array{0?: int<1, 10>, 1?: int<1, 10>, 2?: int<1, 10>, 3?: int<1, 10>} will always evaluate to false.".

Code snippet that reproduces the problem

https://phpstan.org/r/476727c9-c10c-44d8-b156-1d82a1fe76b6

Expected output

same as here https://phpstan.org/r/f8ec4278-7e06-4521-95ef-39f45a712806

@github-actions
Copy link

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 Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants