Skip to content

Commit 73d0f13

Browse files
authored
Fix DOMDocument::create*() return types
1 parent 9c81a80 commit 73d0f13

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

resources/functionMap.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -1898,15 +1898,15 @@
18981898
'DOMCharacterData::substringData' => ['string', 'offset'=>'int', 'count'=>'int'],
18991899
'DOMComment::__construct' => ['void', 'value='=>'string'],
19001900
'DOMDocument::__construct' => ['void', 'version='=>'string', 'encoding='=>'string'],
1901-
'DOMDocument::createAttribute' => ['DOMAttr', 'name'=>'string'],
1902-
'DOMDocument::createAttributeNS' => ['DOMAttr', 'namespaceuri'=>'string', 'qualifiedname'=>'string'],
1903-
'DOMDocument::createCDATASection' => ['DOMCDATASection', 'data'=>'string'],
1901+
'DOMDocument::createAttribute' => ['__benevolent<DOMAttr|false>', 'name'=>'string'],
1902+
'DOMDocument::createAttributeNS' => ['__benevolent<DOMAttr|false>', 'namespaceuri'=>'string', 'qualifiedname'=>'string'],
1903+
'DOMDocument::createCDATASection' => ['__benevolent<DOMCDATASection|false>', 'data'=>'string'],
19041904
'DOMDocument::createComment' => ['DOMComment', 'data'=>'string'],
19051905
'DOMDocument::createDocumentFragment' => ['DOMDocumentFragment'],
1906-
'DOMDocument::createElement' => ['DOMElement', 'name'=>'string', 'value='=>'string'],
1907-
'DOMDocument::createElementNS' => ['DOMElement', 'namespaceuri'=>'string', 'qualifiedname'=>'string', 'value='=>'string'],
1908-
'DOMDocument::createEntityReference' => ['DOMEntityReference', 'name'=>'string'],
1909-
'DOMDocument::createProcessingInstruction' => ['DOMProcessingInstruction', 'target'=>'string', 'data='=>'string'],
1906+
'DOMDocument::createElement' => ['__benevolent<DOMElement|false>', 'name'=>'string', 'value='=>'string'],
1907+
'DOMDocument::createElementNS' => ['__benevolent<DOMElement|false>', 'namespaceuri'=>'string', 'qualifiedname'=>'string', 'value='=>'string'],
1908+
'DOMDocument::createEntityReference' => ['__benevolent<DOMEntityReference|false>', 'name'=>'string'],
1909+
'DOMDocument::createProcessingInstruction' => ['__benevolent<DOMProcessingInstruction|false>', 'target'=>'string', 'data='=>'string'],
19101910
'DOMDocument::createTextNode' => ['DOMText', 'content'=>'string'],
19111911
'DOMDocument::getElementById' => ['DOMElement|null', 'elementid'=>'string'],
19121912
'DOMDocument::getElementsByTagName' => ['DOMNodeList', 'name'=>'string'],

0 commit comments

Comments
 (0)