Skip to content

Commit

Permalink
Fix DOM callmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Mar 6, 2023
1 parent 3a0adab commit 8bd2267
Show file tree
Hide file tree
Showing 6 changed files with 169 additions and 228 deletions.
144 changes: 72 additions & 72 deletions dictionaries/CallMap.php

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions dictionaries/CallMap_80_delta.php
Expand Up @@ -41,9 +41,9 @@
'old' => ['int|false'],
'new' => ['int'],
],
'DateTime::diff' => [
'old' => ['DateInterval|false', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'],
'new' => ['DateInterval', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'],
'CURLFile::__construct' => [
'old' => ['void', 'filename'=>'string', 'mime_type='=>'string', 'posted_filename='=>'string'],
'new' => ['void', 'filename'=>'string', 'mime_type='=>'?string', 'posted_filename='=>'?string'],
],
'DateTime::format' => [
'old' => ['string|false', 'format'=>'string'],
Expand All @@ -53,10 +53,6 @@
'old' => ['int|false'],
'new' => ['int'],
],
'DateTime::setTime' => [
'old' => ['static|false', 'hour'=>'int', 'minute'=>'int', 'second='=>'int', 'microseconds='=>'int'],
'new' => ['static', 'hour'=>'int', 'minute'=>'int', 'second='=>'int', 'microseconds='=>'int'],
],
'DateTimeInterface::getTimestamp' => [
'old' => ['int|false'],
'new' => ['int'],
Expand Down Expand Up @@ -93,6 +89,14 @@
'old' => ['SplFileObject', 'mode='=>'string', 'useIncludePath='=>'bool', 'context='=>'resource'],
'new' => ['SplFileObject', 'mode='=>'string', 'useIncludePath='=>'bool', 'context='=>'?resource'],
],
'DOMDocument::getElementsByTagNameNS' => [
'old' => ['DOMNodeList', 'namespace'=>'string', 'localName'=>'string'],
'new' => ['DOMNodeList', 'namespace'=>'?string', 'localName'=>'string'],
],
'DOMImplementation::createDocument' => [
'old' => ['DOMDocument|false', 'namespace='=>'string', 'qualifiedName='=>'string', 'doctype='=>'DOMDocumentType'],
'new' => ['DOMDocument|false', 'namespace='=>'?string', 'qualifiedName='=>'string', 'doctype='=>'?DOMDocumentType'],
],
'ErrorException::__construct' => [
'old' => ['void', 'message='=>'string', 'code='=>'int', 'severity='=>'int', 'filename='=>'string', 'line='=>'int', 'previous='=>'?Throwable'],
'new' => ['void', 'message='=>'string', 'code='=>'int', 'severity='=>'int', 'filename='=>'?string', 'line='=>'?int', 'previous='=>'?Throwable'],
Expand Down
4 changes: 4 additions & 0 deletions dictionaries/CallMap_81_delta.php
Expand Up @@ -66,6 +66,10 @@
'old' => ['DOMDocumentFragment|false'],
'new' => ['DOMDocumentFragment'],
],
'DOMDocument::createTextNode' => [
'old' => ['DOMText|false', 'data'=>'string'],
'new' => ['DOMText', 'data'=>'string'],
],
'Phar::buildFromDirectory' => [
'old' => ['array|false', 'directory'=>'string', 'pattern='=>'string'],
'new' => ['array', 'directory'=>'string', 'pattern='=>'string'],
Expand Down

0 comments on commit 8bd2267

Please sign in to comment.