Skip to content

False match.unhandled on array with multiple booleans #13029

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
aszenz opened this issue May 16, 2025 · 1 comment · May be fixed by phpstan/phpstan-src#4030
Open

False match.unhandled on array with multiple booleans #13029

aszenz opened this issue May 16, 2025 · 1 comment · May be fixed by phpstan/phpstan-src#4030
Labels
Milestone

Comments

@aszenz
Copy link

aszenz commented May 16, 2025

Bug report

False error on pattern matching boolean arrays

Code snippet that reproduces the problem

https://phpstan.org/r/7d9e7157-6fdc-4127-8a64-e974921f757e

Expected output

No error

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

I love it, but this is bugging me

@ondrejmirtes
Copy link
Member

Interesting that this works: https://phpstan.org/r/dcd39944-940e-4317-8dce-bd9bcdae8e7b

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