Skip to content

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

Merged
merged 1 commit into from
Nov 9, 2019

Conversation

beberlei
Copy link
Contributor

No description provided.

@beberlei beberlei changed the title [WIP] Convert dom methods arginfo to PHP stubs Convert dom methods arginfo to PHP stubs Sep 18, 2019
@beberlei beberlei marked this pull request as ready for review September 18, 2019 22:31
@cmb69
Copy link
Member

cmb69 commented Sep 29, 2019

Could you please rebase to resolve the merge conflicts?

@beberlei
Copy link
Contributor Author

beberlei commented Oct 4, 2019

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.

@nikic
Copy link
Member

nikic commented Oct 29, 2019

Test failures are legit.

@nikic nikic self-assigned this Oct 29, 2019
public function registerPhpFunctions($restrict = null) {}
}

function dom_import_simplexml(SimpleXMLElement $node): ?DOMElement {}
Copy link
Member

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?

Copy link
Contributor Author

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?

Copy link
Member

@nikic nikic Nov 1, 2019

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.

@nikic
Copy link
Member

nikic commented Oct 29, 2019

As a followup, we should kill the use of FALIAS in dom. Those are not actually aliases.

@beberlei
Copy link
Contributor Author

@nikic yes killing FALIAS is on my todo list. Its confusing

Copy link
Member

@nikic nikic left a 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 ;)

@php-pulls php-pulls merged commit 4253ca4 into php:master Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants