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

ConstantArrayType is not accepted into ConstantArrayType with the same description #10872

Open
mvorisek opened this issue Apr 14, 2024 · 0 comments
Labels
Milestone

Comments

@mvorisek
Copy link
Contributor

mvorisek commented Apr 14, 2024

Bug report

There is some internal issue. In the repro, all types are the same.

Even more interesting - when the type is defined manually (uncomment the l35 to reproduce) - the issue is gone.

Code snippet that reproduces the problem

https://phpstan.org/r/850078c3-6db8-41a7-a888-bc5d7517e8fe

Expected output

no phpstan error

@ondrejmirtes ondrejmirtes changed the title @psalm-assert with the same array shape is broken ConstantArrayType is not accepted into ConstantArrayType with the same description Apr 14, 2024
@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants