From c172468d07701f9151e841106064b55038dec13e Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 19 Mar 2024 21:20:38 +0100 Subject: [PATCH 1/2] Fix phpdoc for load methods --- ext/dom/php_dom.stub.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/dom/php_dom.stub.php b/ext/dom/php_dom.stub.php index 9806a863a293b..061dbd0734234 100644 --- a/ext/dom/php_dom.stub.php +++ b/ext/dom/php_dom.stub.php @@ -743,10 +743,10 @@ public function getElementsByTagNameNS(?string $namespace, string $localName): D /** @return DOMNode|false */ public function importNode(DOMNode $node, bool $deep = false) {} - /** @return DOMDocument|bool */ + /** @return bool */ public function load(string $filename, int $options = 0) {} // TODO return type shouldn't depend on the call scope - /** @return DOMDocument|bool */ + /** @return bool */ public function loadXML(string $source, int $options = 0) {} // TODO return type shouldn't depend on the call scope /** @tentative-return-type */ @@ -759,10 +759,10 @@ public function registerNodeClass(string $baseClass, ?string $extendedClass): bo public function save(string $filename, int $options = 0): int|false {} #ifdef LIBXML_HTML_ENABLED - /** @return DOMDocument|bool */ + /** @return bool */ public function loadHTML(string $source, int $options = 0) {} // TODO return type shouldn't depend on the call scope - /** @return DOMDocument|bool */ + /** @return bool */ public function loadHTMLFile(string $filename, int $options = 0) {} // TODO return type shouldn't depend on the call scope /** @tentative-return-type */ From cb6b17451e5a4e8ffef6900d7e4195b8723d6c58 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 19 Mar 2024 22:23:58 +0100 Subject: [PATCH 2/2] Update arginfo --- ext/dom/php_dom_arginfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dom/php_dom_arginfo.h b/ext/dom/php_dom_arginfo.h index 6618238991dcc..620a3d40d141c 100644 --- a/ext/dom/php_dom_arginfo.h +++ b/ext/dom/php_dom_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 3f579ee4c3aef3bde54e9a50d23432f1bd782929 */ + * Stub hash: 1727c4b82f814a86b20fbbbb8ce504141d897388 */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 0) ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)