_innerNode; $result = $inner->nextElementSibling; return ($result !== null) ? $inner->ownerDocument->getWrapperNode($result) : null; } protected function __get_previousElementSibling(): ?Element { // The previousElementSibling getter steps are to return the first preceding // sibling that is an element; otherwise null. // PHP's DOM does this correctly already. $inner = $this->_innerNode; $result = $inner->previousElementSibling; return ($result !== null) ? $inner->ownerDocument->getWrapperNode($result) : null; } }