@@ -743,11 +743,11 @@ public function getElementsByTagNameNS(?string $namespace, string $localName): D
743743 /** @return DOMNode|false */
744744 public function importNode (DOMNode $ node , bool $ deep = false ) {}
745745
746- /** @return DOMDocument| bool */
747- public function load (string $ filename , int $ options = 0 ) {} // TODO return type shouldn't depend on the call scope
746+ /** @return bool */
747+ public function load (string $ filename , int $ options = 0 ) {}
748748
749- /** @return DOMDocument| bool */
750- public function loadXML (string $ source , int $ options = 0 ) {} // TODO return type shouldn't depend on the call scope
749+ /** @return bool */
750+ public function loadXML (string $ source , int $ options = 0 ) {}
751751
752752 /** @tentative-return-type */
753753 public function normalizeDocument (): void {}
@@ -759,11 +759,11 @@ public function registerNodeClass(string $baseClass, ?string $extendedClass): bo
759759 public function save (string $ filename , int $ options = 0 ): int |false {}
760760
761761#ifdef LIBXML_HTML_ENABLED
762- /** @return DOMDocument| bool */
763- public function loadHTML (string $ source , int $ options = 0 ) {} // TODO return type shouldn't depend on the call scope
762+ /** @return bool */
763+ public function loadHTML (string $ source , int $ options = 0 ) {}
764764
765- /** @return DOMDocument| bool */
766- public function loadHTMLFile (string $ filename , int $ options = 0 ) {} // TODO return type shouldn't depend on the call scope
765+ /** @return bool */
766+ public function loadHTMLFile (string $ filename , int $ options = 0 ) {}
767767
768768 /** @tentative-return-type */
769769 public function saveHTML (?DOMNode $ node = null ): string |false {}
0 commit comments