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

DOM stubs: Reference interfaces from the global namespace correctly #13801

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

derrabus
Copy link
Contributor

The stub file uses the interfaces IteratorAggregate and Countable from the global namespace in class definitions of the new DOM namespace, without importing those interfaces or prepending them with a backslash. This would instruct an interpreter to search for those interfaces inside the DOM namespace where they don't exist.

This PR fixes these bad references.

@derrabus derrabus requested a review from nielsdos as a code owner March 25, 2024 10:38
Copy link
Member

@TimWolla TimWolla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! Waiting for CI to be green before merging.

@TimWolla TimWolla merged commit ef93086 into php:master Mar 25, 2024
10 checks passed
@derrabus derrabus deleted the bugfix/dom-stub-global-interfaces branch March 25, 2024 11:14
@derrabus
Copy link
Contributor Author

Thank you for the swift review and merge!

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.

None yet

2 participants