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

Array key exists assert both ways #7415

Closed
wants to merge 2 commits into from
Closed

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Jan 17, 2022

This will fix #7412

All the code was already there, but it was only using the keys from the array in second param to restrict the type of the first param.

Only when that was failing (the else I dropped), it tried to use the value of the first param to restrict the keys from the array in the second param.

This PR does both, always.

@orklah orklah added the release:fix The PR will be included in 'Fixes' section of the release notes label Jan 17, 2022
@orklah
Copy link
Collaborator Author

orklah commented Jan 17, 2022

Note: This will probably create a conflict on #7410

@orklah orklah marked this pull request as draft January 19, 2022 19:32
@orklah
Copy link
Collaborator Author

orklah commented Jan 19, 2022

I'll put this in draft. I'll probably start this again from scratch on master to avoid conflicts with #7410

@orklah
Copy link
Collaborator Author

orklah commented Jan 20, 2022

superseded by #7449

@orklah orklah closed this Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Needs work release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PossiblyUndefinedIntArrayOffset is still emitted after array_key_exists
1 participant