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

Get rid of unnecessary instanceof self in ConstantArrayType #3552

Merged

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Oct 8, 2024

Another try of #3542 which was reverted. Since the precondition #3406 was merged we can't see the array_reverse changes anymore in the diff.

Sorry for having that in there in the first place, I was impatient.

This removes ConstantArrayType::reindex() which was a bad design decision from my side from the beginning.

@ondrejmirtes ondrejmirtes merged commit 9d19cd0 into phpstan:2.0.x Oct 8, 2024
140 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@herndlm herndlm deleted the constant-array-type-instance-of branch October 8, 2024 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants