[php-src] PR #25999: Fix GH-25998: Dom\Element::setIdAttributeNS() rejects null for $namespace
| From: | thunderer | Date: | Tue, 01 Dec 2026 17:28:56 +0000 |
| Subject: | [php-src] PR #25999: Fix GH-25998: Dom\Element::setIdAttributeNS() rejects null for $namespace | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41327@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25999
Author: thunderer
Fixes GH-25998.
Dom\Element::setIdAttributeNS() now has its own method entry that parses
$namespace as a nullable string, so null means no namespace, as the stub
declares and as the other *NS methods of Dom\Element do. Before,
null threw a TypeError in strict mode and was otherwise coerced to
"" with a deprecation. Calls with a string, including
"", are unchanged, and DOMElement::setIdAttributeNS() is
unchanged.