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

Fix type reconciliation breaking Context::$references_in_scope (fixes #8289). #8306

Merged
merged 4 commits into from Jul 21, 2022

Conversation

AndrolGenhald
Copy link
Collaborator

@AndrolGenhald AndrolGenhald commented Jul 21, 2022

Thanks @ohader re #8290!

The problem here was that the reconciliation due to the comparison on $a caused $doesNotMatter[$a] to be removed from $existing_types (which later gets assigned to Context::$vars_in_scope), but Context::$references_in_scope still had $reference pointing to "\$doesNotMatter[\$a]".

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

orklah commented Jul 21, 2022

Congrats on becoming the world expert on PHP references 😄 ! That's mumbo jumbo to me !

Thanks!

@orklah orklah merged commit f6fb715 into vimeo:master Jul 21, 2022
@ohader
Copy link
Contributor

ohader commented Jul 21, 2022

Wow! Awesome and thanks a bunch! I just used this change in a project that failed previously... works like a charm now! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

3 participants