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 */ 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)