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

Remove unused in-array assertions #7202

Merged
merged 1 commit into from
Dec 23, 2021
Merged

Conversation

muglug
Copy link
Collaborator

@muglug muglug commented Dec 22, 2021

These assertions cannot be parsed, since the in-array assertion handler always tries to convert assertions to a type.

This should have a really small performance improvement for array_key_exists checks, but it also just simplifies the code in a pleasing fashion and removes a couple of now-unnecessary try...catch blocks.

These assertions cannot be parsed, since the `in-array` assertion handler always tries to convert assertions to a type
@muglug muglug added the release:internal The PR will be included in 'Internal changes' section of the release notes label Dec 22, 2021
@orklah
Copy link
Collaborator

orklah commented Dec 23, 2021

Cool! Thanks!

@orklah orklah merged commit 0eaa60b into master Dec 23, 2021
@muglug muglug deleted the muglug-remove-useless-assertions branch January 15, 2022 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:internal The PR will be included in 'Internal changes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants