Skip to content

Commit efef006

Browse files
committed
Fix method signature
1 parent f04570e commit efef006

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/XML/DOMDocumentFactory.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,12 @@ public static function fromFile(
145145

146146

147147
/**
148+
* @param string $version
148149
* @param string $encoding
149150
*/
150-
public static function create(string $encoding = 'UTF-8'): Dom\XMLDocument
151+
public static function create(string $version = '1.0', string $encoding = 'UTF-8'): Dom\XMLDocument
151152
{
152-
return Dom\XMLDocument::createEmpty($encoding);
153+
return Dom\XMLDocument::createEmpty($version, $encoding);
153154
}
154155

155156

0 commit comments

Comments
 (0)