-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Convert dom methods arginfo to PHP stubs #4721
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
Conversation
Could you please rebase to resolve the merge conflicts? |
Niki also pointed me towards methods and return types, which in this case here need to be docblocks instead of real types. I will do the rebase as well. |
Test failures are legit. |
ext/dom/dom.stub.php
Outdated
public function registerPhpFunctions($restrict = null) {} | ||
} | ||
|
||
function dom_import_simplexml(SimpleXMLElement $node): ?DOMElement {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this throw is a non-SimpleXMLElement is passed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it just emits a warning :-/ What is the approach in that case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd relax the type to object
for now.
As a followup, we should kill the use of FALIAS in dom. Those are not actually aliases. |
@nikic yes killing FALIAS is on my todo list. Its confusing |
ac0db42
to
4253ca4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't rechecked everything ... gonna assume it's alright now ;)
No description provided.