Skip to content

Remove DomNode::ownerDocument stub#4197

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
VincentLanglet:ownerDocument
Sep 2, 2025
Merged

Remove DomNode::ownerDocument stub#4197
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
VincentLanglet:ownerDocument

Conversation

@VincentLanglet
Copy link
Copy Markdown
Contributor

  1. This seems to still be nullable:
    For instance https://3v4l.org/mMQj8#v8.4.11

  2. According to DOM stubbed properties not working phpstan#8837 this wasn't working anyway.

You also might want to close the issue phpstan/phpstan#8837 since it asked to infer DomElement::ownerDocument as non nullable while the 3v4l example is showing it can be null.

@VincentLanglet VincentLanglet marked this pull request as ready for review August 1, 2025 21:24
@phpstan-bot
Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes
Copy link
Copy Markdown
Member

Please fix conflicts.

@ondrejmirtes ondrejmirtes merged commit b69738c into phpstan:2.1.x Sep 2, 2025
262 of 264 checks passed
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants