Qual: Add extra phan stubs fixing PhanUndeclaredClassMethod

This commit is contained in:
MDW 2024-03-23 14:29:54 +01:00
parent 30b7ae336f
commit 2a13f7134c
No known key found for this signature in database
6 changed files with 1649 additions and 0 deletions

View File

@ -643,11 +643,13 @@ return [
'ftp' => PHAN_DIR . '/stubs/ftp.phan_php',
'gd' => PHAN_DIR . '/stubs/gd.phan_php',
'geoip' => PHAN_DIR . '/stubs/geoip.phan_php',
'imagick' => PHAN_DIR . '/stubs/imagick.phan_php',
'imap' => PHAN_DIR . '/stubs/imap.phan_php',
'intl' => PHAN_DIR . '/stubs/intl.phan_php',
'ldap' => PHAN_DIR . '/stubs/ldap.phan_php',
'mcrypt' => PHAN_DIR . '/stubs/mcrypt.phan_php',
'memcache' => PHAN_DIR . '/stubs/memcache.phan_php',
'memcached' => PHAN_DIR . '/stubs/memcached.phan_php',
'mysqli' => PHAN_DIR . '/stubs/mysqli.phan_php',
'pdo_cubrid' => PHAN_DIR . '/stubs/pdo_cubrid.phan_php',
'pdo_mysql' => PHAN_DIR . '/stubs/pdo_mysql.phan_php',
@ -658,6 +660,7 @@ return [
'simplexml' => PHAN_DIR . '/stubs/SimpleXML.phan_php',
'soap' => PHAN_DIR . '/stubs/soap.phan_php',
'sockets' => PHAN_DIR . '/stubs/sockets.phan_php',
'tidy' => PHAN_DIR . '/stubs/tidy.phan_php',
'zip' => PHAN_DIR . '/stubs/zip.phan_php',
],
];

View File

@ -397,10 +397,12 @@ return [
'gd' => PHAN_DIR . '/stubs/gd.phan_php',
'geoip' => PHAN_DIR . '/stubs/geoip.phan_php',
'imap' => PHAN_DIR . '/stubs/imap.phan_php',
'imagick' => PHAN_DIR . '/stubs/imagick.phan_php',
'intl' => PHAN_DIR . '/stubs/intl.phan_php',
'ldap' => PHAN_DIR . '/stubs/ldap.phan_php',
'mcrypt' => PHAN_DIR . '/stubs/mcrypt.phan_php',
'memcache' => PHAN_DIR . '/stubs/memcache.phan_php',
'memcached' => PHAN_DIR . '/stubs/memcached.phan_php',
'mysqli' => PHAN_DIR . '/stubs/mysqli.phan_php',
'pdo_cubrid' => PHAN_DIR . '/stubs/pdo_cubrid.phan_php',
'pdo_mysql' => PHAN_DIR . '/stubs/pdo_mysql.phan_php',
@ -411,6 +413,7 @@ return [
'simplexml' => PHAN_DIR . '/stubs/SimpleXML.phan_php',
'soap' => PHAN_DIR . '/stubs/soap.phan_php',
'sockets' => PHAN_DIR . '/stubs/sockets.phan_php',
'tidy' => PHAN_DIR . '/stubs/tidy.phan_php',
'zip' => PHAN_DIR . '/stubs/zip.phan_php',
],

View File

@ -228,10 +228,12 @@ return [
'gd' => PHAN_DIR . '/stubs/gd.phan_php',
'geoip' => PHAN_DIR . '/stubs/geoip.phan_php',
'imap' => PHAN_DIR . '/stubs/imap.phan_php',
'imagick' => PHAN_DIR . '/stubs/imagick.phan_php',
'intl' => PHAN_DIR . '/stubs/intl.phan_php',
'ldap' => PHAN_DIR . '/stubs/ldap.phan_php',
'mcrypt' => PHAN_DIR . '/stubs/mcrypt.phan_php',
'memcache' => PHAN_DIR . '/stubs/memcache.phan_php',
'memcached' => PHAN_DIR . '/stubs/memcached.phan_php',
'mysqli' => PHAN_DIR . '/stubs/mysqli.phan_php',
'pdo_cubrid' => PHAN_DIR . '/stubs/pdo_cubrid.phan_php',
'pdo_mysql' => PHAN_DIR . '/stubs/pdo_mysql.phan_php',
@ -241,6 +243,7 @@ return [
'session' => PHAN_DIR . '/stubs/session.phan_php',
'simplexml' => PHAN_DIR . '/stubs/SimpleXML.phan_php',
'soap' => PHAN_DIR . '/stubs/soap.phan_php',
'tidy' => PHAN_DIR . '/stubs/tidy.phan_php',
'sockets' => PHAN_DIR . '/stubs/sockets.phan_php',
'zip' => PHAN_DIR . '/stubs/zip.phan_php',
],

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,180 @@
<?php
// These stubs were generated by the phan stub generator.
// @phan-stub-for-extension memcached@3.0.3
namespace {
class Memcached {
// constants
public const LIBMEMCACHED_VERSION_HEX = 16777240;
public const OPT_COMPRESSION = -1001;
public const OPT_COMPRESSION_TYPE = -1004;
public const OPT_PREFIX_KEY = -1002;
public const OPT_SERIALIZER = -1003;
public const OPT_USER_FLAGS = -1006;
public const OPT_STORE_RETRY_COUNT = -1005;
public const HAVE_IGBINARY = false;
public const HAVE_JSON = false;
public const HAVE_MSGPACK = false;
public const HAVE_SESSION = true;
public const HAVE_SASL = true;
public const OPT_HASH = 2;
public const HASH_DEFAULT = 0;
public const HASH_MD5 = 1;
public const HASH_CRC = 2;
public const HASH_FNV1_64 = 3;
public const HASH_FNV1A_64 = 4;
public const HASH_FNV1_32 = 5;
public const HASH_FNV1A_32 = 6;
public const HASH_HSIEH = 7;
public const HASH_MURMUR = 8;
public const OPT_DISTRIBUTION = 9;
public const DISTRIBUTION_MODULA = 0;
public const DISTRIBUTION_CONSISTENT = 1;
public const DISTRIBUTION_VIRTUAL_BUCKET = 6;
public const OPT_LIBKETAMA_COMPATIBLE = 16;
public const OPT_LIBKETAMA_HASH = 17;
public const OPT_TCP_KEEPALIVE = 32;
public const OPT_BUFFER_WRITES = 10;
public const OPT_BINARY_PROTOCOL = 18;
public const OPT_NO_BLOCK = 0;
public const OPT_TCP_NODELAY = 1;
public const OPT_SOCKET_SEND_SIZE = 4;
public const OPT_SOCKET_RECV_SIZE = 5;
public const OPT_CONNECT_TIMEOUT = 14;
public const OPT_RETRY_TIMEOUT = 15;
public const OPT_DEAD_TIMEOUT = 36;
public const OPT_SEND_TIMEOUT = 19;
public const OPT_RECV_TIMEOUT = 20;
public const OPT_POLL_TIMEOUT = 8;
public const OPT_CACHE_LOOKUPS = 6;
public const OPT_SERVER_FAILURE_LIMIT = 21;
public const OPT_AUTO_EJECT_HOSTS = 28;
public const OPT_HASH_WITH_PREFIX_KEY = 25;
public const OPT_NOREPLY = 26;
public const OPT_SORT_HOSTS = 12;
public const OPT_VERIFY_KEY = 13;
public const OPT_USE_UDP = 27;
public const OPT_NUMBER_OF_REPLICAS = 29;
public const OPT_RANDOMIZE_REPLICA_READ = 30;
public const OPT_REMOVE_FAILED_SERVERS = 35;
public const OPT_SERVER_TIMEOUT_LIMIT = 37;
public const RES_SUCCESS = 0;
public const RES_FAILURE = 1;
public const RES_HOST_LOOKUP_FAILURE = 2;
public const RES_UNKNOWN_READ_FAILURE = 7;
public const RES_PROTOCOL_ERROR = 8;
public const RES_CLIENT_ERROR = 9;
public const RES_SERVER_ERROR = 10;
public const RES_WRITE_FAILURE = 5;
public const RES_DATA_EXISTS = 12;
public const RES_NOTSTORED = 14;
public const RES_NOTFOUND = 16;
public const RES_PARTIAL_READ = 18;
public const RES_SOME_ERRORS = 19;
public const RES_NO_SERVERS = 20;
public const RES_END = 21;
public const RES_ERRNO = 26;
public const RES_BUFFERED = 32;
public const RES_TIMEOUT = 31;
public const RES_BAD_KEY_PROVIDED = 33;
public const RES_STORED = 15;
public const RES_DELETED = 22;
public const RES_STAT = 24;
public const RES_ITEM = 25;
public const RES_NOT_SUPPORTED = 28;
public const RES_FETCH_NOTFINISHED = 30;
public const RES_SERVER_MARKED_DEAD = 35;
public const RES_UNKNOWN_STAT_KEY = 36;
public const RES_INVALID_HOST_PROTOCOL = 34;
public const RES_MEMORY_ALLOCATION_FAILURE = 17;
public const RES_CONNECTION_SOCKET_CREATE_FAILURE = 11;
public const RES_E2BIG = 37;
public const RES_KEY_TOO_BIG = 39;
public const RES_SERVER_TEMPORARILY_DISABLED = 47;
public const RES_SERVER_MEMORY_ALLOCATION_FAILURE = 48;
public const RES_AUTH_PROBLEM = 40;
public const RES_AUTH_FAILURE = 41;
public const RES_AUTH_CONTINUE = 42;
public const RES_PAYLOAD_FAILURE = -1001;
public const SERIALIZER_PHP = 1;
public const SERIALIZER_IGBINARY = 2;
public const SERIALIZER_JSON = 3;
public const SERIALIZER_JSON_ARRAY = 4;
public const SERIALIZER_MSGPACK = 5;
public const COMPRESSION_FASTLZ = 2;
public const COMPRESSION_ZLIB = 1;
public const GET_PRESERVE_ORDER = 1;
public const GET_EXTENDED = 2;
public const GET_ERROR_RETURN_VALUE = false;
// methods
public function __construct($persistent_id = NULL, $callback = NULL) {}
public function getResultCode() {}
public function getResultMessage() {}
public function get($key, $cache_cb = NULL, $get_flags = NULL) {}
public function getByKey($server_key, $key, $cache_cb = NULL, $get_flags = NULL) {}
public function getMulti(array $keys, $get_flags = NULL) {}
public function getMultiByKey($server_key, array $keys, $get_flags = NULL) {}
public function getDelayed(array $keys, $with_cas = NULL, $value_cb = NULL) {}
public function getDelayedByKey($server_key, array $keys, $with_cas = NULL, $value_cb = NULL) {}
public function fetch() {}
public function fetchAll() {}
public function set($key, $value, $expiration = NULL) {}
public function setByKey($server_key, $key, $value, $expiration = NULL) {}
public function touch($key, $expiration) {}
public function touchByKey($server_key, $key, $expiration) {}
public function setMulti(array $items, $expiration = NULL) {}
public function setMultiByKey($server_key, array $items, $expiration = NULL) {}
public function cas($cas_token, $key, $value, $expiration = NULL) {}
public function casByKey($cas_token, $server_key, $key, $value, $expiration = NULL) {}
public function add($key, $value, $expiration = NULL) {}
public function addByKey($server_key, $key, $value, $expiration = NULL) {}
public function append($key, $value, $expiration = NULL) {}
public function appendByKey($server_key, $key, $value, $expiration = NULL) {}
public function prepend($key, $value, $expiration = NULL) {}
public function prependByKey($server_key, $key, $value, $expiration = NULL) {}
public function replace($key, $value, $expiration = NULL) {}
public function replaceByKey($server_key, $key, $value, $expiration = NULL) {}
public function delete($key, $time = NULL) {}
public function deleteMulti($keys, $time = NULL) {}
public function deleteByKey($server_key, $key, $time = NULL) {}
public function deleteMultiByKey($server_key, $keys, $time = NULL) {}
public function increment($key, $offset = NULL, $initial_value = NULL, $expiry = NULL) {}
public function decrement($key, $offset = NULL, $initial_value = NULL, $expiry = NULL) {}
public function incrementByKey($server_key, $key, $offset = NULL, $initial_value = NULL, $expiry = NULL) {}
public function decrementByKey($server_key, $key, $offset = NULL, $initial_value = NULL, $expiry = NULL) {}
public function addServer($host, $port, $weight = NULL) {}
public function addServers(array $servers) {}
public function getServerList() {}
public function getServerByKey($server_key) {}
public function resetServerList() {}
public function quit() {}
public function flushBuffers() {}
public function getLastErrorMessage() {}
public function getLastErrorCode() {}
public function getLastErrorErrno() {}
public function getLastDisconnectedServer() {}
public function getStats($args) {}
public function getVersion() {}
public function getAllKeys() {}
public function flush($delay = NULL) {}
public function getOption($option) {}
public function setOption($option, $value) {}
public function setOptions($options) {}
public function setBucket($host_map, $forward_map, $replicas) {}
public function setSaslAuthData($username, $password) {}
public function isPersistent() {}
public function isPristine() {}
}
class MemcachedException extends \RuntimeException {
// properties
public $message;
public $code;
public $file;
public $line;
}
}

View File

@ -0,0 +1,244 @@
<?php
// These stubs were generated by the phan stub generator.
// @phan-stub-for-extension tidy@7.4.33
namespace {
class tidy {
// properties
public $errorBuffer;
// methods
public function getOpt($option) {}
public function cleanRepair() {}
public function parseFile($file, $config_options = null, $encoding = null, $use_include_path = null) {}
public function parseString($input, $config_options = null, $encoding = null) {}
public function repairString($data, $config_file = null, $encoding = null) {}
public function repairFile($filename, $config_file = null, $encoding = null, $use_include_path = null) {}
public function diagnose() {}
public function getRelease() {}
public function getConfig() {}
public function getStatus() {}
public function getHtmlVer() {}
public function getOptDoc($optname) {}
public function isXhtml() {}
public function isXml() {}
public function root() {}
public function head() {}
public function html() {}
public function body() {}
public function __construct($filename = null, $config_file = null, $encoding = null, $use_include_path = null) {}
}
final class tidyNode {
// properties
public $attribute;
public $child;
public $column;
public $id;
public $line;
public $name;
public $proprietary;
public $type;
public $value;
// methods
public function hasChildren() {}
public function hasSiblings() {}
public function isComment() {}
public function isHtml() {}
public function isText() {}
public function isJste() {}
public function isAsp() {}
public function isPhp() {}
public function getParent() {}
private function __construct() {}
}
function tidy_access_count($object) {}
function tidy_clean_repair($object) {}
function tidy_config_count($object) {}
function tidy_diagnose($object) {}
function tidy_error_count($object) {}
function tidy_get_body($tidy) {}
function tidy_get_config($object) {}
function tidy_get_error_buffer($object) {}
function tidy_get_head($object) {}
function tidy_get_html($object) {}
function tidy_get_html_ver($object) {}
function tidy_get_opt_doc($resource, $optname) {}
function tidy_get_output($object) {}
function tidy_get_release() {}
function tidy_get_root($object) {}
function tidy_get_status($object) {}
function tidy_getopt($object, $option) {}
function tidy_is_xhtml($object) {}
function tidy_is_xml($object) {}
function tidy_parse_file($file, $config_options = null, $encoding = null, $use_include_path = null) {}
function tidy_parse_string($input, $config_options = null, $encoding = null) {}
function tidy_repair_file($filename, $config_file = null, $encoding = null, $use_include_path = null) {}
function tidy_repair_string($data, $config_file = null, $encoding = null) {}
function tidy_warning_count($object) {}
const TIDY_NODETYPE_ASP = 10;
const TIDY_NODETYPE_CDATA = 8;
const TIDY_NODETYPE_COMMENT = 2;
const TIDY_NODETYPE_DOCTYPE = 1;
const TIDY_NODETYPE_END = 6;
const TIDY_NODETYPE_JSTE = 11;
const TIDY_NODETYPE_PHP = 12;
const TIDY_NODETYPE_PROCINS = 3;
const TIDY_NODETYPE_ROOT = 0;
const TIDY_NODETYPE_SECTION = 9;
const TIDY_NODETYPE_START = 5;
const TIDY_NODETYPE_STARTEND = 7;
const TIDY_NODETYPE_TEXT = 4;
const TIDY_NODETYPE_XMLDECL = 13;
const TIDY_TAG_A = 1;
const TIDY_TAG_ABBR = 2;
const TIDY_TAG_ACRONYM = 3;
const TIDY_TAG_ADDRESS = 4;
const TIDY_TAG_ALIGN = 5;
const TIDY_TAG_APPLET = 6;
const TIDY_TAG_AREA = 7;
const TIDY_TAG_ARTICLE = 123;
const TIDY_TAG_ASIDE = 124;
const TIDY_TAG_AUDIO = 125;
const TIDY_TAG_B = 8;
const TIDY_TAG_BASE = 9;
const TIDY_TAG_BASEFONT = 10;
const TIDY_TAG_BDI = 126;
const TIDY_TAG_BDO = 11;
const TIDY_TAG_BGSOUND = 12;
const TIDY_TAG_BIG = 13;
const TIDY_TAG_BLINK = 14;
const TIDY_TAG_BLOCKQUOTE = 15;
const TIDY_TAG_BODY = 16;
const TIDY_TAG_BR = 17;
const TIDY_TAG_BUTTON = 18;
const TIDY_TAG_CANVAS = 127;
const TIDY_TAG_CAPTION = 19;
const TIDY_TAG_CENTER = 20;
const TIDY_TAG_CITE = 21;
const TIDY_TAG_CODE = 22;
const TIDY_TAG_COL = 23;
const TIDY_TAG_COLGROUP = 24;
const TIDY_TAG_COMMAND = 128;
const TIDY_TAG_COMMENT = 25;
const TIDY_TAG_DATALIST = 129;
const TIDY_TAG_DD = 26;
const TIDY_TAG_DEL = 27;
const TIDY_TAG_DETAILS = 130;
const TIDY_TAG_DFN = 28;
const TIDY_TAG_DIALOG = 131;
const TIDY_TAG_DIR = 29;
const TIDY_TAG_DIV = 30;
const TIDY_TAG_DL = 31;
const TIDY_TAG_DT = 32;
const TIDY_TAG_EM = 33;
const TIDY_TAG_EMBED = 34;
const TIDY_TAG_FIELDSET = 35;
const TIDY_TAG_FIGCAPTION = 132;
const TIDY_TAG_FIGURE = 133;
const TIDY_TAG_FONT = 36;
const TIDY_TAG_FOOTER = 134;
const TIDY_TAG_FORM = 37;
const TIDY_TAG_FRAME = 38;
const TIDY_TAG_FRAMESET = 39;
const TIDY_TAG_H1 = 40;
const TIDY_TAG_H2 = 41;
const TIDY_TAG_H3 = 42;
const TIDY_TAG_H4 = 43;
const TIDY_TAG_H5 = 44;
const TIDY_TAG_H6 = 45;
const TIDY_TAG_HEAD = 46;
const TIDY_TAG_HEADER = 135;
const TIDY_TAG_HGROUP = 136;
const TIDY_TAG_HR = 47;
const TIDY_TAG_HTML = 48;
const TIDY_TAG_I = 49;
const TIDY_TAG_IFRAME = 50;
const TIDY_TAG_ILAYER = 51;
const TIDY_TAG_IMG = 52;
const TIDY_TAG_INPUT = 53;
const TIDY_TAG_INS = 54;
const TIDY_TAG_ISINDEX = 55;
const TIDY_TAG_KBD = 56;
const TIDY_TAG_KEYGEN = 57;
const TIDY_TAG_LABEL = 58;
const TIDY_TAG_LAYER = 59;
const TIDY_TAG_LEGEND = 60;
const TIDY_TAG_LI = 61;
const TIDY_TAG_LINK = 62;
const TIDY_TAG_LISTING = 63;
const TIDY_TAG_MAIN = 137;
const TIDY_TAG_MAP = 64;
const TIDY_TAG_MARK = 138;
const TIDY_TAG_MARQUEE = 66;
const TIDY_TAG_MENU = 67;
const TIDY_TAG_MENUITEM = 139;
const TIDY_TAG_META = 68;
const TIDY_TAG_METER = 140;
const TIDY_TAG_MULTICOL = 69;
const TIDY_TAG_NAV = 141;
const TIDY_TAG_NOBR = 70;
const TIDY_TAG_NOEMBED = 71;
const TIDY_TAG_NOFRAMES = 72;
const TIDY_TAG_NOLAYER = 73;
const TIDY_TAG_NOSAVE = 74;
const TIDY_TAG_NOSCRIPT = 75;
const TIDY_TAG_OBJECT = 76;
const TIDY_TAG_OL = 77;
const TIDY_TAG_OPTGROUP = 78;
const TIDY_TAG_OPTION = 79;
const TIDY_TAG_OUTPUT = 142;
const TIDY_TAG_P = 80;
const TIDY_TAG_PARAM = 81;
const TIDY_TAG_PLAINTEXT = 83;
const TIDY_TAG_PRE = 84;
const TIDY_TAG_PROGRESS = 143;
const TIDY_TAG_Q = 85;
const TIDY_TAG_RB = 86;
const TIDY_TAG_RBC = 87;
const TIDY_TAG_RP = 88;
const TIDY_TAG_RT = 89;
const TIDY_TAG_RTC = 90;
const TIDY_TAG_RUBY = 91;
const TIDY_TAG_S = 92;
const TIDY_TAG_SAMP = 93;
const TIDY_TAG_SCRIPT = 94;
const TIDY_TAG_SECTION = 144;
const TIDY_TAG_SELECT = 95;
const TIDY_TAG_SERVER = 96;
const TIDY_TAG_SERVLET = 97;
const TIDY_TAG_SMALL = 98;
const TIDY_TAG_SOURCE = 145;
const TIDY_TAG_SPACER = 99;
const TIDY_TAG_SPAN = 100;
const TIDY_TAG_STRIKE = 101;
const TIDY_TAG_STRONG = 102;
const TIDY_TAG_STYLE = 103;
const TIDY_TAG_SUB = 104;
const TIDY_TAG_SUMMARY = 146;
const TIDY_TAG_SUP = 105;
const TIDY_TAG_TABLE = 107;
const TIDY_TAG_TBODY = 108;
const TIDY_TAG_TD = 109;
const TIDY_TAG_TEMPLATE = 147;
const TIDY_TAG_TEXTAREA = 110;
const TIDY_TAG_TFOOT = 111;
const TIDY_TAG_TH = 112;
const TIDY_TAG_THEAD = 113;
const TIDY_TAG_TIME = 148;
const TIDY_TAG_TITLE = 114;
const TIDY_TAG_TR = 115;
const TIDY_TAG_TRACK = 149;
const TIDY_TAG_TT = 116;
const TIDY_TAG_U = 117;
const TIDY_TAG_UL = 118;
const TIDY_TAG_UNKNOWN = 0;
const TIDY_TAG_VAR = 119;
const TIDY_TAG_VIDEO = 150;
const TIDY_TAG_WBR = 120;
const TIDY_TAG_XMP = 121;
}