diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-09 12:19:44 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-09 12:19:44 +0100 |
commit | ab92ffee227137ed38ebe2ca8ce26e70da6aa810 (patch) | |
tree | 3ba0db8eccce1c1971883a03c1f6e95530225763 /ext/dom/php_dom.stub.php | |
parent | ff8da0dcff2eb867a4de9e45ecb400d4abbf1f8e (diff) | |
download | php-git-ab92ffee227137ed38ebe2ca8ce26e70da6aa810.tar.gz |
Make getElementsByTagNameNS $namespace nullable
According to the DOM specification, this argument is supposed to
be nullable.
Diffstat (limited to 'ext/dom/php_dom.stub.php')
-rw-r--r-- | ext/dom/php_dom.stub.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/php_dom.stub.php b/ext/dom/php_dom.stub.php index cdc6b99846..b303caf93f 100644 --- a/ext/dom/php_dom.stub.php +++ b/ext/dom/php_dom.stub.php @@ -190,7 +190,7 @@ class DOMElement implements DOMParentNode, DOMChildNode public function getElementsByTagName(string $qualifiedName) {} /** @return DOMNodeList */ - public function getElementsByTagNameNS(string $namespace, string $localName) {} + public function getElementsByTagNameNS(?string $namespace, string $localName) {} /** @return bool */ public function hasAttribute(string $qualifiedName) {} @@ -287,7 +287,7 @@ class DOMDocument implements DOMParentNode public function getElementsByTagName(string $qualifiedName) {} /** @return DOMNodeList */ - public function getElementsByTagNameNS(string $namespace, string $localName) {} + public function getElementsByTagNameNS(?string $namespace, string $localName) {} /** @return DOMNode|false */ public function importNode(DOMNode $node, bool $deep = false) {} |