Skip to content

Fix missing variance check for abstract set with asymmetric type #15157

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

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

iluuu1994
Copy link
Member

Closes GH-15140

The first commit is a cleanup and fix of a related issue, in preparation of the actual fix in the second commit. The check is a bit out of place. I also thought about inheriting the abstract method and removing it during inheritance when the check succeeds, but this would 1. require delaying the abstract checks after variance checks, and 2. require dealing with freeing of potentially duplicated static methods and the hooks list.

Anyway, I'll think about this again in some more detail.

@iluuu1994 iluuu1994 merged commit 2f27e0b into php:master Aug 5, 2024
8 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signature of abstract set hook not enforced
1 participant