mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix memcached extension callmap
This commit is contained in:
parent
c035db5f11
commit
ab77cfd490
@ -6762,36 +6762,36 @@ return [
|
||||
'memcache_set_compress_threshold' => ['bool', 'memcache_obj'=>'Memcache', 'threshold'=>'int', 'min_savings='=>'float'],
|
||||
'memcache_set_failure_callback' => ['', 'memcache_obj'=>'Memcache'],
|
||||
'memcache_set_server_params' => ['bool', 'memcache_obj'=>'Memcache', 'host'=>'string', 'port='=>'int', 'timeout='=>'int', 'retry_interval='=>'int', 'status='=>'bool', 'failure_callback='=>'callable'],
|
||||
'Memcached::__construct' => ['void', 'persistent_id='=>'mixed|string', 'on_new_object_cb='=>'mixed'],
|
||||
'Memcached::__construct' => ['void', 'persistent_id='=>'?string', 'callback='=>'?callable', 'connection_str='=>'?string'],
|
||||
'Memcached::add' => ['bool', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::addByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::addServer' => ['bool', 'host'=>'string', 'port'=>'int', 'weight='=>'int'],
|
||||
'Memcached::addServers' => ['bool', 'servers'=>'array'],
|
||||
'Memcached::append' => ['bool', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::appendByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::cas' => ['bool', 'cas_token'=>'float', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::casByKey' => ['bool', 'cas_token'=>'float', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::append' => ['?bool', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::appendByKey' => ['?bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::cas' => ['bool', 'cas_token'=>'string|int|float', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::casByKey' => ['bool', 'cas_token'=>'string|int|float', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::decrement' => ['int|false', 'key'=>'string', 'offset='=>'int', 'initial_value='=>'int', 'expiry='=>'int'],
|
||||
'Memcached::decrementByKey' => ['int|false', 'server_key'=>'string', 'key'=>'string', 'offset='=>'int', 'initial_value='=>'int', 'expiry='=>'int'],
|
||||
'Memcached::delete' => ['bool', 'key'=>'string', 'time='=>'int'],
|
||||
'Memcached::deleteByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'time='=>'int'],
|
||||
'Memcached::deleteMulti' => ['array', 'keys'=>'array', 'time='=>'int'],
|
||||
'Memcached::deleteMultiByKey' => ['bool', 'server_key'=>'string', 'keys'=>'array', 'time='=>'int'],
|
||||
'Memcached::deleteMultiByKey' => ['array', 'server_key'=>'string', 'keys'=>'array', 'time='=>'int'],
|
||||
'Memcached::fetch' => ['array|false'],
|
||||
'Memcached::fetchAll' => ['array|false'],
|
||||
'Memcached::flush' => ['bool', 'delay='=>'int'],
|
||||
'Memcached::flushBuffers' => [''],
|
||||
'Memcached::get' => ['mixed|false', 'key'=>'string', 'cache_cb='=>'?callable', 'flags='=>'int'],
|
||||
'Memcached::flushBuffers' => ['bool'],
|
||||
'Memcached::get' => ['mixed|false', 'key'=>'string', 'cache_cb='=>'?callable', 'get_flags='=>'int'],
|
||||
'Memcached::getAllKeys' => ['array|false'],
|
||||
'Memcached::getByKey' => ['mixed|false', 'server_key'=>'string', 'key'=>'string', 'value_cb='=>'?callable', 'flags='=>'int'],
|
||||
'Memcached::getDelayed' => ['bool', 'keys'=>'array', 'with_cas='=>'bool', 'value_cb='=>'callable'],
|
||||
'Memcached::getByKey' => ['mixed|false', 'server_key'=>'string', 'key'=>'string', 'cache_cb='=>'?callable', 'get_flags='=>'int'],
|
||||
'Memcached::getDelayed' => ['bool', 'keys'=>'array', 'with_cas='=>'bool', 'value_cb='=>'?callable'],
|
||||
'Memcached::getDelayedByKey' => ['bool', 'server_key'=>'string', 'keys'=>'array', 'with_cas='=>'bool', 'value_cb='=>'?callable'],
|
||||
'Memcached::getLastDisconnectedServer' => [''],
|
||||
'Memcached::getLastErrorCode' => [''],
|
||||
'Memcached::getLastErrorErrno' => [''],
|
||||
'Memcached::getLastErrorMessage' => [''],
|
||||
'Memcached::getMulti' => ['array|false', 'keys'=>'array', 'flags='=>'int'],
|
||||
'Memcached::getMultiByKey' => ['array|false', 'server_key'=>'string', 'keys'=>'array', 'flags='=>'int'],
|
||||
'Memcached::getLastDisconnectedServer' => ['array|false'],
|
||||
'Memcached::getLastErrorCode' => ['int'],
|
||||
'Memcached::getLastErrorErrno' => ['int'],
|
||||
'Memcached::getLastErrorMessage' => ['string'],
|
||||
'Memcached::getMulti' => ['array|false', 'keys'=>'array', 'get_flags='=>'int'],
|
||||
'Memcached::getMultiByKey' => ['array|false', 'server_key'=>'string', 'keys'=>'array', 'get_flags='=>'int'],
|
||||
'Memcached::getOption' => ['mixed|false', 'option'=>'int'],
|
||||
'Memcached::getResultCode' => ['int'],
|
||||
'Memcached::getResultMessage' => ['string'],
|
||||
@ -6803,23 +6803,23 @@ return [
|
||||
'Memcached::incrementByKey' => ['int|false', 'server_key'=>'string', 'key'=>'string', 'offset='=>'int', 'initial_value='=>'int', 'expiry='=>'int'],
|
||||
'Memcached::isPersistent' => ['bool'],
|
||||
'Memcached::isPristine' => ['bool'],
|
||||
'Memcached::prepend' => ['bool', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::prependByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::prepend' => ['?bool', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::prependByKey' => ['?bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::quit' => ['bool'],
|
||||
'Memcached::replace' => ['bool', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::replaceByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::resetServerList' => ['bool'],
|
||||
'Memcached::set' => ['bool', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::setBucket' => ['', 'host_map'=>'array', 'forward_map'=>'array', 'replicas'=>''],
|
||||
'Memcached::setBucket' => ['bool', 'host_map'=>'array', 'forward_map'=>'?array', 'replicas'=>'int'],
|
||||
'Memcached::setByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::setEncodingKey' => ['', 'key'=>''],
|
||||
'Memcached::setEncodingKey' => ['bool', 'key'=>'string'],
|
||||
'Memcached::setMulti' => ['bool', 'items'=>'array', 'expiration='=>'int'],
|
||||
'Memcached::setMultiByKey' => ['bool', 'server_key'=>'string', 'items'=>'array', 'expiration='=>'int'],
|
||||
'Memcached::setOption' => ['bool', 'option'=>'int', 'value'=>'mixed'],
|
||||
'Memcached::setOptions' => ['bool', 'options'=>'array'],
|
||||
'Memcached::setSaslAuthData' => ['void', 'username'=>'string', 'password'=>'string'],
|
||||
'Memcached::touch' => ['bool', 'key'=>'string', 'expiration'=>'int'],
|
||||
'Memcached::touchByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'expiration'=>'int'],
|
||||
'Memcached::setSaslAuthData' => ['bool', 'username'=>'string', 'password'=>'string'],
|
||||
'Memcached::touch' => ['bool', 'key'=>'string', 'expiration='=>'int'],
|
||||
'Memcached::touchByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'expiration='=>'int'],
|
||||
'MemcachePool::add' => ['bool', 'key'=>'string', 'var'=>'mixed', 'flag='=>'int', 'expire='=>'int'],
|
||||
'MemcachePool::addServer' => ['bool', 'host'=>'string', 'port='=>'int', 'persistent='=>'bool', 'weight='=>'int', 'timeout='=>'int', 'retry_interval='=>'int', 'status='=>'bool', 'failure_callback='=>'?callable', 'timeoutms='=>'int'],
|
||||
'MemcachePool::append' => [''],
|
||||
|
@ -3479,36 +3479,36 @@ return [
|
||||
'MemcachePool::setCompressThreshold' => ['bool', 'thresold'=>'int', 'min_saving='=>'float'],
|
||||
'MemcachePool::setFailureCallback' => [''],
|
||||
'MemcachePool::setServerParams' => ['bool', 'host'=>'string', 'port='=>'int', 'timeout='=>'int', 'retry_interval='=>'int', 'status='=>'bool', 'failure_callback='=>'?callable'],
|
||||
'Memcached::__construct' => ['void', 'persistent_id='=>'mixed|string', 'on_new_object_cb='=>'mixed'],
|
||||
'Memcached::__construct' => ['void', 'persistent_id='=>'?string', 'callback='=>'?callable', 'connection_str='=>'?string'],
|
||||
'Memcached::add' => ['bool', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::addByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::addServer' => ['bool', 'host'=>'string', 'port'=>'int', 'weight='=>'int'],
|
||||
'Memcached::addServers' => ['bool', 'servers'=>'array'],
|
||||
'Memcached::append' => ['bool', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::appendByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::cas' => ['bool', 'cas_token'=>'float', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::casByKey' => ['bool', 'cas_token'=>'float', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::append' => ['?bool', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::appendByKey' => ['?bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::cas' => ['bool', 'cas_token'=>'string|int|float', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::casByKey' => ['bool', 'cas_token'=>'string|int|float', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::decrement' => ['int|false', 'key'=>'string', 'offset='=>'int', 'initial_value='=>'int', 'expiry='=>'int'],
|
||||
'Memcached::decrementByKey' => ['int|false', 'server_key'=>'string', 'key'=>'string', 'offset='=>'int', 'initial_value='=>'int', 'expiry='=>'int'],
|
||||
'Memcached::delete' => ['bool', 'key'=>'string', 'time='=>'int'],
|
||||
'Memcached::deleteByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'time='=>'int'],
|
||||
'Memcached::deleteMulti' => ['array', 'keys'=>'array', 'time='=>'int'],
|
||||
'Memcached::deleteMultiByKey' => ['bool', 'server_key'=>'string', 'keys'=>'array', 'time='=>'int'],
|
||||
'Memcached::deleteMultiByKey' => ['array', 'server_key'=>'string', 'keys'=>'array', 'time='=>'int'],
|
||||
'Memcached::fetch' => ['array|false'],
|
||||
'Memcached::fetchAll' => ['array|false'],
|
||||
'Memcached::flush' => ['bool', 'delay='=>'int'],
|
||||
'Memcached::flushBuffers' => [''],
|
||||
'Memcached::get' => ['mixed|false', 'key'=>'string', 'cache_cb='=>'?callable', 'flags='=>'int'],
|
||||
'Memcached::flushBuffers' => ['bool'],
|
||||
'Memcached::get' => ['mixed|false', 'key'=>'string', 'cache_cb='=>'?callable', 'get_flags='=>'int'],
|
||||
'Memcached::getAllKeys' => ['array|false'],
|
||||
'Memcached::getByKey' => ['mixed|false', 'server_key'=>'string', 'key'=>'string', 'value_cb='=>'?callable', 'flags='=>'int'],
|
||||
'Memcached::getDelayed' => ['bool', 'keys'=>'array', 'with_cas='=>'bool', 'value_cb='=>'callable'],
|
||||
'Memcached::getByKey' => ['mixed|false', 'server_key'=>'string', 'key'=>'string', 'cache_cb='=>'?callable', 'get_flags='=>'int'],
|
||||
'Memcached::getDelayed' => ['bool', 'keys'=>'array', 'with_cas='=>'bool', 'value_cb='=>'?callable'],
|
||||
'Memcached::getDelayedByKey' => ['bool', 'server_key'=>'string', 'keys'=>'array', 'with_cas='=>'bool', 'value_cb='=>'?callable'],
|
||||
'Memcached::getLastDisconnectedServer' => [''],
|
||||
'Memcached::getLastErrorCode' => [''],
|
||||
'Memcached::getLastErrorErrno' => [''],
|
||||
'Memcached::getLastErrorMessage' => [''],
|
||||
'Memcached::getMulti' => ['array|false', 'keys'=>'array', 'flags='=>'int'],
|
||||
'Memcached::getMultiByKey' => ['array|false', 'server_key'=>'string', 'keys'=>'array', 'flags='=>'int'],
|
||||
'Memcached::getLastDisconnectedServer' => ['array|false'],
|
||||
'Memcached::getLastErrorCode' => ['int'],
|
||||
'Memcached::getLastErrorErrno' => ['int'],
|
||||
'Memcached::getLastErrorMessage' => ['string'],
|
||||
'Memcached::getMulti' => ['array|false', 'keys'=>'array', 'get_flags='=>'int'],
|
||||
'Memcached::getMultiByKey' => ['array|false', 'server_key'=>'string', 'keys'=>'array', 'get_flags='=>'int'],
|
||||
'Memcached::getOption' => ['mixed|false', 'option'=>'int'],
|
||||
'Memcached::getResultCode' => ['int'],
|
||||
'Memcached::getResultMessage' => ['string'],
|
||||
@ -3520,23 +3520,23 @@ return [
|
||||
'Memcached::incrementByKey' => ['int|false', 'server_key'=>'string', 'key'=>'string', 'offset='=>'int', 'initial_value='=>'int', 'expiry='=>'int'],
|
||||
'Memcached::isPersistent' => ['bool'],
|
||||
'Memcached::isPristine' => ['bool'],
|
||||
'Memcached::prepend' => ['bool', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::prependByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::prepend' => ['?bool', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::prependByKey' => ['?bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'string'],
|
||||
'Memcached::quit' => ['bool'],
|
||||
'Memcached::replace' => ['bool', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::replaceByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::resetServerList' => ['bool'],
|
||||
'Memcached::set' => ['bool', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::setBucket' => ['', 'host_map'=>'array', 'forward_map'=>'array', 'replicas'=>''],
|
||||
'Memcached::setBucket' => ['bool', 'host_map'=>'array', 'forward_map'=>'?array', 'replicas'=>'int'],
|
||||
'Memcached::setByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'value'=>'mixed', 'expiration='=>'int'],
|
||||
'Memcached::setEncodingKey' => ['', 'key'=>''],
|
||||
'Memcached::setEncodingKey' => ['bool', 'key'=>'string'],
|
||||
'Memcached::setMulti' => ['bool', 'items'=>'array', 'expiration='=>'int'],
|
||||
'Memcached::setMultiByKey' => ['bool', 'server_key'=>'string', 'items'=>'array', 'expiration='=>'int'],
|
||||
'Memcached::setOption' => ['bool', 'option'=>'int', 'value'=>'mixed'],
|
||||
'Memcached::setOptions' => ['bool', 'options'=>'array'],
|
||||
'Memcached::setSaslAuthData' => ['void', 'username'=>'string', 'password'=>'string'],
|
||||
'Memcached::touch' => ['bool', 'key'=>'string', 'expiration'=>'int'],
|
||||
'Memcached::touchByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'expiration'=>'int'],
|
||||
'Memcached::setSaslAuthData' => ['bool', 'username'=>'string', 'password'=>'string'],
|
||||
'Memcached::touch' => ['bool', 'key'=>'string', 'expiration='=>'int'],
|
||||
'Memcached::touchByKey' => ['bool', 'server_key'=>'string', 'key'=>'string', 'expiration='=>'int'],
|
||||
'MessageFormatter::__construct' => ['void', 'locale'=>'string', 'pattern'=>'string'],
|
||||
'MessageFormatter::create' => ['MessageFormatter', 'locale'=>'string', 'pattern'=>'string'],
|
||||
'MessageFormatter::format' => ['false|string', 'args'=>'array'],
|
||||
|
@ -407,6 +407,8 @@ class InternalCallMapHandlerTest extends TestCase
|
||||
'memcache_set_compress_threshold',
|
||||
'memcache_set_failure_callback',
|
||||
'memcache_set_server_params',
|
||||
'memcached::cas', // memcached 3.2.0 has incorrect reflection
|
||||
'memcached::casbykey', // memcached 3.2.0 has incorrect reflection
|
||||
'memcachepool::add',
|
||||
'memcachepool::addserver',
|
||||
'memcachepool::append',
|
||||
|
Loading…
Reference in New Issue
Block a user