@@ -743,11 +743,11 @@ public function getElementsByTagNameNS(?string $namespace, string $localName): D
743
743
/** @return DOMNode|false */
744
744
public function importNode (DOMNode $ node , bool $ deep = false ) {}
745
745
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 ) {}
748
748
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 ) {}
751
751
752
752
/** @tentative-return-type */
753
753
public function normalizeDocument (): void {}
@@ -759,11 +759,11 @@ public function registerNodeClass(string $baseClass, ?string $extendedClass): bo
759
759
public function save (string $ filename , int $ options = 0 ): int |false {}
760
760
761
761
#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 ) {}
764
764
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 ) {}
767
767
768
768
/** @tentative-return-type */
769
769
public function saveHTML (?DOMNode $ node = null ): string |false {}
0 commit comments