Skip to content

Commit 5d714f8

Browse files
committed
Update stubs
1 parent dc9e1cc commit 5d714f8

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

stubs/ext/dom/DOMDocument.php

+16-4
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,17 @@ public function getElementsByTagNameNS(?string $namespace, string $localName)
7979
public function importNode(DOMNode $node, bool $deep = false)
8080
{
8181
}
82-
/** @return DOMDocument|bool */
82+
/**
83+
* @tentative-return-type
84+
* @return (DOMDocument | bool)
85+
*/
8386
public function load(string $filename, int $options = 0)
8487
{
8588
}
86-
/** @return DOMDocument|bool */
89+
/**
90+
* @tentative-return-type
91+
* @return (DOMDocument | bool)
92+
*/
8793
public function loadXML(string $source, int $options = 0)
8894
{
8995
}
@@ -109,11 +115,17 @@ public function save(string $filename, int $options = 0)
109115
{
110116
}
111117
#ifdef LIBXML_HTML_ENABLED
112-
/** @return DOMDocument|bool */
118+
/**
119+
* @tentative-return-type
120+
* @return (DOMDocument | bool)
121+
*/
113122
public function loadHTML(string $source, int $options = 0)
114123
{
115124
}
116-
/** @return DOMDocument|bool */
125+
/**
126+
* @tentative-return-type
127+
* @return (DOMDocument | bool)
128+
*/
117129
public function loadHTMLFile(string $filename, int $options = 0)
118130
{
119131
}

0 commit comments

Comments
 (0)