From ec68312aaa7a0a76b29585a62f152b44f07456fe Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Tue, 22 Oct 2024 22:53:48 +0200 Subject: [PATCH] Document DOMImplementation::createDocument() change for PHP 8.4 Technically this can throw INVALID_STATE_ERR on allocation failure, just like other DOM node classes, but people shouldn't be handling that anyway as that happens when the system allocator is OOM... --- reference/dom/domimplementation/createdocument.xml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/reference/dom/domimplementation/createdocument.xml b/reference/dom/domimplementation/createdocument.xml index 881869b89b80..603bb7056e05 100644 --- a/reference/dom/domimplementation/createdocument.xml +++ b/reference/dom/domimplementation/createdocument.xml @@ -10,7 +10,7 @@ &reftitle.description; - public DOMDocumentfalseDOMImplementation::createDocument + public DOMDocumentDOMImplementation::createDocument stringnullnamespace&null; stringqualifiedName"" DOMDocumentTypenulldoctype&null; @@ -54,10 +54,10 @@ &reftitle.returnvalues; - A new DOMDocument object or &false; on error. If + A new DOMDocument object. If namespace, qualifiedName, and doctype are null, the returned - DOMDocument is empty with no document element + DOMDocument is empty with no document element. @@ -98,6 +98,12 @@ + + 8.4.0 + + The function now has the tentative return type DOMDocument. + + 8.0.3