Skip to content

Commit 2abf8f4

Browse files
committed
Ensure text return type consistency in TextNode::text method
1 parent 0f10a58 commit 2abf8f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PHPHtmlParser/Dom/Node/TextNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ public function text(): string
104104
// remember the conversion
105105
$this->convertedText = $text;
106106

107-
return $text;
107+
return (string) $text;
108108
}
109109

110-
return $text;
110+
return (string) $text;
111111
}
112112

113113
/**

0 commit comments

Comments
 (0)