You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back in 2020 to resolve issue #3081 a change was made to incorporate the fact that DOMNode::ownerDocument can be null. This was effectively reverted with PR #10619.
This reverting change is technically wrong and not following the actual implementation in PHP.
The example linked in the PR (https://3v4l.org/tWoCc) about PHP enforcing the non-nullable type is misleading/incorrect, as a modified, even simpler, example demonstrates: https://3v4l.org/fGc7t
In other words: The ownerDocument-Property can very much (still) be null. Whether or not this is a desirable behavior is a different story.
The text was updated successfully, but these errors were encountered:
Back in 2020 to resolve issue #3081 a change was made to incorporate the fact that
DOMNode::ownerDocument
can be null. This was effectively reverted with PR #10619.This reverting change is technically wrong and not following the actual implementation in PHP.
The example linked in the PR (https://3v4l.org/tWoCc) about PHP enforcing the non-nullable type is misleading/incorrect, as a modified, even simpler, example demonstrates: https://3v4l.org/fGc7t
In other words: The
ownerDocument
-Property can very much (still) be null. Whether or not this is a desirable behavior is a different story.The text was updated successfully, but these errors were encountered: