Skip to content

Commit 8d45f60

Browse files
committed
Fix incorrect return type
1 parent 9349424 commit 8d45f60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Utils/XPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function getXPath(DOMNode $doc): DOMXPath
4242
*
4343
* @throws RuntimeException If no DOM document is available.
4444
*/
45-
public static function findElement(DOMNode $ref, string $name): DOMDocument
45+
public static function findElement(DOMNode $ref, string $name)
4646
{
4747
$doc = $ref instanceof DOMDocument ? $ref : $ref->ownerDocument;
4848
if ($doc === null) {

0 commit comments

Comments
 (0)