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 #3542

Merged

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Oct 6, 2024

Gets rid of now unnecessary instanceof self in ConstantArrayType by slightly improving sliceArray() which made it possible to remove reindex() completely :)

Contains changes of #3406 and should be merged after that one came into 2.0.x. Should apply cleanly, if not I can update it of course.

@phpstan-bot
Copy link
Collaborator

You've opened the pull request against the latest branch 2.0.x. PHPStan 2.0 is not going to be released for months. If your code is relevant on 1.12.x and you want it to be released sooner, please rebase your pull request and change its target to 1.12.x.

@ondrejmirtes ondrejmirtes merged commit f818ac5 into phpstan:2.0.x Oct 7, 2024
390 of 450 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@ondrejmirtes
Copy link
Member

Contains changes of #3406 and should be merged after that one came into 2.0.x. Should apply cleanly, if not I can update it of course.

Don't do this please next time. I smashed the green button without thinking. You should have sent this PR after I merged #3406.

@herndlm herndlm deleted the constant-array-type-instance-of branch October 7, 2024 16:49
@herndlm
Copy link
Contributor Author

herndlm commented Oct 7, 2024

yes, will refrain from doing this next time. ah I saw you reverted it again, should I re-create the core change?

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.

3 participants