Skip to content
Permalink
Browse files

Improve DOM extension types (#1965)

* Improve DOM extension types

* fixup! Improve DOM extension types
  • Loading branch information...
ShiraNai7 authored and muglug committed Jul 24, 2019
1 parent c763801 commit 90d020d6fce254b0463ad1eda5796f170efa526e
Showing with 13 additions and 10 deletions.
  1. +3 −3 src/Psalm/Internal/CallMap.php
  2. +10 −7 src/Psalm/Internal/PropertyMap.php
@@ -2165,7 +2165,7 @@
'DOMNode::getNodePath' => ['?string'],
'DOMNode::hasAttributes' => ['bool'],
'DOMNode::hasChildNodes' => ['bool'],
'DOMNode::insertBefore' => ['DOMNode', 'newnode'=>'DOMNode', 'refnode='=>'DOMNode'],
'DOMNode::insertBefore' => ['DOMNode', 'newnode'=>'DOMNode', 'refnode='=>'DOMNode|null'],
'DOMNode::isDefaultNamespace' => ['bool', 'namespaceuri'=>'string'],
'DOMNode::isSameNode' => ['bool', 'node'=>'DOMNode'],
'DOMNode::isSupported' => ['bool', 'feature'=>'string', 'version'=>'string'],
@@ -2193,8 +2193,8 @@
'domxml_xslt_stylesheet_file' => ['DomXsltStylesheet', 'xsl_file'=>'string'],
'domxml_xslt_version' => ['int'],
'DOMXPath::__construct' => ['void', 'doc'=>'DOMDocument'],
'DOMXPath::evaluate' => ['mixed', 'expression'=>'string', 'contextnode='=>'DOMNode', 'registernodens='=>'bool'],
'DOMXPath::query' => ['false|DOMNodeList', 'expression'=>'string', 'contextnode='=>'DOMNode', 'registernodens='=>'bool'],
'DOMXPath::evaluate' => ['mixed', 'expression'=>'string', 'contextnode='=>'DOMNode|null', 'registernodens='=>'bool'],
'DOMXPath::query' => ['false|DOMNodeList', 'expression'=>'string', 'contextnode='=>'DOMNode|null', 'registernodens='=>'bool'],
'DOMXPath::registerNamespace' => ['bool', 'prefix'=>'string', 'namespaceuri'=>'string'],
'DOMXPath::registerPhpFunctions' => ['void', 'restrict='=>'mixed'],
'DomXsltStylesheet::process' => ['DomDocument', 'xml_doc'=>'DOMDocument', 'xslt_params='=>'array', 'is_xpath_param='=>'bool', 'profile_filename='=>'string'],
@@ -199,6 +199,8 @@
'xmlEncoding' => 'string',
'xmlStandalone' => 'bool',
'xmlVersion' => 'string',
'ownerDocument' => 'null',
'parentNode' => 'null',
],
'libxmlerror' => [
'level' => 'int',
@@ -266,6 +268,7 @@
'domelement' => [
'schemaTypeInfo' => 'bool',
'tagName' => 'string',
'attributes' => 'DOMNamedNodeMap',
],
'tidynode' => [
'value' => 'string',
@@ -319,16 +322,16 @@
'nodeType' => 'int',
'parentNode' => 'DOMNode',
'childNodes' => 'DOMNodeList',
'firstChild' => 'DOMNode',
'lastChild' => 'DOMNode',
'previousSibling' => 'DOMNode',
'nextSibling' => 'DOMNode',
'attributes' => 'DOMNamedNodeMap',
'firstChild' => 'DOMNode|null',
'lastChild' => 'DOMNode|null',
'previousSibling' => 'DOMNode|null',
'nextSibling' => 'DOMNode|null',
'attributes' => 'null',
'ownerDocument' => 'DOMDocument',
'namespaceURI' => 'string',
'namespaceURI' => 'string|null',
'prefix' => 'string',
'localName' => 'string',
'baseURI' => 'string',
'baseURI' => 'string|null',
'textContent' => 'string',
],
'domattr' => [

0 comments on commit 90d020d

Please sign in to comment.
You can’t perform that action at this time.