Doc #79273 [NEW]: DOMNode: Class synopsis lacks info about nullable properties

From: Date: Thu, 13 Feb 2020 20:09:16 +0000
Subject: Doc #79273 [NEW]: DOMNode: Class synopsis lacks info about nullable properties
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17299@lists.php.net to get a copy of this message
From:             ca at lsp dot net
Operating system: Irrelevant
PHP version:      Irrelevant
Package:          DOM XML related
Bug Type:         Documentation Problem
Bug description:DOMNode: Class synopsis lacks info about nullable properties

Description:
------------
---
From manual page: https://php.net/class.domnode
---

DOMNode has several properties that can be NULL:

* nodeValue
* parentNode
* firstChild
* lastChild
* previousSibling
* nextSibling
* attributes
* ownerDocument

The class synopsis, however, doesn't provide this important information.

Expected result:
----------------
public ?string $nodeValue ;
public readonly int $nodeType ;
public readonly ?DOMNode $parentNode ;
public readonly DOMNodeList $childNodes ;
public readonly ?DOMNode $firstChild ;
public readonly ?DOMNode $lastChild ;
public readonly ?DOMNode $previousSibling ;
public readonly ?DOMNode $nextSibling ;
public readonly ?DOMNamedNodeMap $attributes ;
public readonly ?DOMDocument $ownerDocument ;

Actual result:
--------------
public string $nodeValue ;
public readonly int $nodeType ;
public readonly DOMNode $parentNode ;
public readonly DOMNodeList $childNodes ;
public readonly DOMNode $firstChild ;
public readonly DOMNode $lastChild ;
public readonly DOMNode $previousSibling ;
public readonly DOMNode $nextSibling ;
public readonly DOMNamedNodeMap $attributes ;
public readonly DOMDocument $ownerDocument ;

-- 
Edit bug report at https://bugs.php.net/bug.php?id=79273&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=79273&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=79273&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=79273&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=79273&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=79273&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=79273&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=79273&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=79273&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=79273&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=79273&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79273&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=79273&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=79273&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=79273&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=79273&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=79273&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=79273&r=mysqlcfg


Thread (3 messages)

« previous php.doc.bugs (#17299) next »