Skip to content

Commit a062146

Browse files
author
Andrew Scott
committed
Add types to function definition
1 parent 661ce4d commit a062146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function setHtml($html): self {
141141
*
142142
* @return bool
143143
*/
144-
public function loadHTML($html, $options = 0): bool {
144+
public function loadHTML(string $html, int $options = 0): bool {
145145
// Fix LibXML's crazy-ness RE root nodes
146146
// While importing HTML using the LIBXML_HTML_NOIMPLIED option LibXML insists
147147
// on having one root node. All subsequent nodes are appended to this first node.

0 commit comments

Comments
 (0)