1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/src/Psalm/PropertyMap.php

419 lines
11 KiB
PHP
Raw Normal View History

<?php
namespace Psalm;
2016-11-21 20:51:19 +01:00
/**
* Stolen from https://github.com/etsy/phan/blob/master/src/Phan/Language/Internal/PropertyMap.php
2016-12-15 01:19:25 +01:00
*
2016-11-21 20:51:19 +01:00
* The MIT License (MIT)
* Copyright (c) 2015 Rasmus Lerdorf
* Copyright (c) 2015 Andrew Morrison
2016-12-15 01:19:25 +01:00
*
2016-11-21 20:51:19 +01:00
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
2016-12-15 01:19:25 +01:00
*
2016-11-21 20:51:19 +01:00
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
2016-12-15 01:19:25 +01:00
*
2016-11-21 20:51:19 +01:00
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
return [
'arrayobject' => [
'name' => 'string'
],
'limititerator' => [
'name' => 'string'
],
'solrdocumentfield' => [
'name' => 'string',
'boost' => 'float',
'values' => 'array'
],
'domprocessinginstruction' => [
'target' => 'string',
'data' => 'string'
],
'recursivearrayiterator' => [
'name' => 'string'
],
'eventbuffer' => [
'length' => 'int',
'contiguous-space' => 'int'
],
'mongocursor' => [
'slaveokay' => 'boolean',
'timeout' => 'integer'
],
'domxpath' => [
'document' => 'DOMDocument'
],
'domentity' => [
'publicId' => 'string',
'systemId' => 'string',
'notationName' => 'string',
'actualEncoding' => 'string',
'encoding' => 'string',
'version' => 'string'
],
'splminheap' => [
'name' => 'string'
],
'mongodb-driver-exception-writeexception' => [
'writeresult' => 'MongoDBDriverWriteResult'
],
'ziparchive' => [
'status' => 'int',
'statussys' => 'int',
'numfiles' => 'int',
'filename' => 'string',
'comment' => 'string'
],
'solrexception' => [
'sourceline' => 'integer',
'sourcefile' => 'string',
'zif-name' => 'string'
],
'arrayiterator' => [
'name' => 'string'
],
'mongoid' => [
'id' => 'string'
],
'dateinterval' => [
'y' => 'integer',
'm' => 'integer',
'd' => 'integer',
'h' => 'integer',
'i' => 'integer',
's' => 'integer',
'invert' => 'integer',
'days' => 'mixed'
],
'tokyotyrantexception' => [
'code' => 'int'
],
'tidy' => [
'errorbuffer' => 'string'
],
'filteriterator' => [
'name' => 'string'
],
'parentiterator' => [
'name' => 'string'
],
'recursiveregexiterator' => [
'name' => 'string'
],
'error' => [
'message' => 'string',
'code' => 'int',
'file' => 'string',
'line' => 'int'
],
'domexception' => [
'code' => 'int'
],
'domentityreference' => [
'name' => 'string'
],
'spldoublylinkedlist' => [
'name' => 'string'
],
'domdocumentfragment' => [
'name' => 'string'
],
'collator' => [
'name' => 'string'
],
'streamwrapper' => [
'context' => 'resource'
],
'pdostatement' => [
'querystring' => 'string'
],
'domnotation' => [
'publicId' => 'string',
'systemId' => 'string'
],
'snmpexception' => [
'code' => 'string'
],
'directoryiterator' => [
'name' => 'string'
],
'splqueue' => [
'name' => 'string'
],
'locale' => [
'name' => 'string'
],
'directory' => [
'path' => 'string',
'handle' => 'resource'
],
'splheap' => [
'name' => 'string'
],
'domnodelist' => [
'length' => 'int'
],
'mongodb' => [
'w' => 'integer',
'wtimeout' => 'integer'
],
'splpriorityqueue' => [
'name' => 'string'
],
'mongoclient' => [
'connected' => 'boolean',
'status' => 'string'
],
'domdocument' => [
'actualEncoding' => 'string',
'config' => 'DOMConfiguration',
'doctype' => 'DOMDocumentType',
'documentElement' => 'DOMElement',
'documentURI' => 'string',
'encoding' => 'string',
'formatOutput' => 'bool',
'implementation' => 'DOMImplementation',
'preserveWhiteSpace' => 'bool',
'recover' => 'bool',
'resolveExternals' => 'bool',
'standalone' => 'bool',
'strictErrorChecking' => 'bool',
'substituteEntities' => 'bool',
'validateOnParse' => 'bool',
'version' => 'string',
'xmlEncoding' => 'string',
'xmlStandalone' => 'bool',
'xmlVersion' => 'string'
],
'libxmlerror' => [
'level' => 'int',
'code' => 'int',
'column' => 'int',
'message' => 'string',
'file' => 'string',
'line' => 'int'
],
'domimplementation' => [
'name' => 'string'
],
'normalizer' => [
'name' => 'string'
],
'mysqli-driver' => [
'client-info' => 'string',
'client-version' => 'string',
'driver-version' => 'string',
'embedded' => 'string',
'reconnect' => 'bool',
'report-mode' => 'int'
],
'norewinditerator' => [
'name' => 'string'
],
'event' => [
'pending' => 'bool'
],
'domdocumenttype' => [
'publicId' => 'string',
'systemId' => 'string',
'name' => 'string',
'entities' => 'DOMNamedNodeMap',
'notations' => 'DOMNamedNodeMap',
'internalSubset' => 'string'
],
'errorexception' => [
'severity' => 'int'
],
'recursivedirectoryiterator' => [
'name' => 'string'
],
'domcharacterdata' => [
'data' => 'string',
'length' => 'int'
],
'mongocollection' => [
'db' => 'MongoDB',
'w' => 'integer',
'wtimeout' => 'integer'
],
'mongoint64' => [
'value' => 'string'
],
'eventlistener' => [
'fd' => 'int'
],
'splmaxheap' => [
'name' => 'string'
],
'regexiterator' => [
'name' => 'string'
],
'domelement' => [
'schemaTypeInfo' => 'bool',
'tagName' => 'string'
],
'tidynode' => [
'value' => 'string',
'name' => 'string',
'type' => 'int',
'line' => 'int',
'column' => 'int',
'proprietary' => 'bool',
'id' => 'int',
'attribute' => 'array',
'child' => 'array'
],
'recursivecachingiterator' => [
'name' => 'string'
],
'solrresponse' => [
'http-status' => 'integer',
'parser-mode' => 'integer',
'success' => 'bool',
'http-status-message' => 'string',
'http-request-url' => 'string',
'http-raw-request-headers' => 'string',
'http-raw-request' => 'string',
'http-raw-response-headers' => 'string',
'http-raw-response' => 'string',
'http-digested-response' => 'string'
],
'domnamednodemap' => [
'length' => 'int'
],
'mysqli-sql-exception' => [
'sqlstate' => 'string'
],
'splstack' => [
'name' => 'string'
],
'numberformatter' => [
'name' => 'string'
],
'eventsslcontext' => [
'local-cert' => 'string',
'local-pk' => 'string'
],
'pdoexception' => [
'errorinfo' => 'array',
'code' => 'string'
],
'domnode' => [
'nodeName' => 'string',
'nodeValue' => 'string',
'nodeType' => 'int',
'parentNode' => 'DOMNode',
'childNodes' => 'DOMNodeList',
'firstChild' => 'DOMNode',
'lastChild' => 'DOMNode',
'previousSibling' => 'DOMNode',
'nextSibling' => 'DOMNode',
'attributes' => 'DOMNamedNodeMap',
'ownerDocument' => 'DOMDocument',
'namespaceURI' => 'string',
'prefix' => 'string',
'localName' => 'string',
'baseURI' => 'string',
'textContent' => 'string'
],
'domattr' => [
'name' => 'string',
'ownerElement' => 'DOMElement',
'schemaTypeInfo' => 'bool',
'specified' => 'bool',
'value' => 'string'
],
'simplexmliterator' => [
'name' => 'string'
],
'snmp' => [
'max-oids' => 'int',
'valueretrieval' => 'int',
'quick-print' => 'bool',
'enum-print' => 'bool',
'oid-output-format' => 'int',
'oid-increasing-check' => 'bool',
'exceptions-enabled' => 'int',
'info' => 'array'
],
'mongoint32' => [
'value' => 'string'
],
'xmlreader' => [
'attributecount' => 'int',
'baseuri' => 'string',
'depth' => 'int',
'hasattributes' => 'bool',
'hasvalue' => 'bool',
'isdefault' => 'bool',
'isemptyelement' => 'bool',
'localname' => 'string',
'name' => 'string',
'namespaceuri' => 'string',
'nodetype' => 'int',
'prefix' => 'string',
'value' => 'string',
'xmllang' => 'string'
],
'eventbufferevent' => [
'fd' => 'integer',
'priority' => 'integer',
'input' => 'EventBuffer',
'output' => 'EventBuffer'
],
'domtext' => [
'wholeText' => 'string'
],
'exception' => [
'message' => 'string',
'code' => 'int',
'file' => 'string',
'line' => 'int'
],
2016-12-24 12:03:55 +01:00
'reflectionclass' => [
'name' => 'string'
],
'reflectionmethod' => [
'class' => 'string',
'name' => 'string'
],
'reflectionparameter' => [
'name' => 'string'
],
2016-10-30 16:14:36 +01:00
'phpparser\\node\\expr' => [
'inferredType' => 'Psalm\\Type\\Union|null'
],
'phpparser\\node\\name' => [
'inferredType' => 'Psalm\\Type\\Union|null'
],
'phpparser\\node\\stmt\\return_' => [
'inferredType' => 'Psalm\\Type\\Union|null'
],
'phpparser\\node\\expr\\funccall' => [
'args' => 'array<int, PhpParser\Node\Arg>'
],
'phpparser\\node\\expr\\new_' => [
'args' => 'array<int, PhpParser\Node\Arg>'
],
'phpparser\\node\\expr\\methodcall' => [
'args' => 'array<int, PhpParser\Node\Arg>'
],
'phpparser\\node\\expr\\staticcall' => [
'args' => 'array<int, PhpParser\Node\Arg>'
],
];