1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix socket return types

This commit is contained in:
Matthew Brown 2017-02-17 19:52:37 -05:00
parent 7cd1b27ff1
commit 870a4486a8

View File

@ -8152,22 +8152,22 @@ return [
'SoapServer::SoapServer' => ['object', 'wsdl'=>'string|null', 'options'=>'array'],
'SoapVar::__construct' => ['', 'data'=>'mixed', 'encoding'=>'int', 'type_name='=>'string', 'type_namespace='=>'string', 'node_name='=>'string', 'node_namespace='=>'string'],
'SoapVar::SoapVar' => ['object', 'data'=>'', 'encoding'=>'int', 'type_name='=>'string', 'type_namespace='=>'string', 'node_name='=>'string', 'node_namespace='=>'string'],
'socket_accept' => ['resource', 'socket'=>''],
'socket_accept' => ['resource|false', 'socket'=>''],
'socket_bind' => ['bool', 'socket'=>'', 'addr'=>'string', 'port='=>'int'],
'socket_clear_error' => ['', 'socket='=>''],
'socket_close' => ['', 'socket'=>''],
'socket_cmsg_space' => ['int', 'level'=>'int', 'type'=>'int'],
'socket_connect' => ['bool', 'socket'=>'', 'addr'=>'string', 'port='=>'int'],
'socket_create_listen' => ['resource', 'port'=>'int', 'backlog='=>'int'],
'socket_create_listen' => ['resource|false', 'port'=>'int', 'backlog='=>'int'],
'socket_create_pair' => ['bool', 'domain'=>'int', 'type'=>'int', 'protocol'=>'int', '&fd'=>'array'],
'socket_create' => ['resource', 'domain'=>'int', 'type'=>'int', 'protocol'=>'int'],
'socket_create' => ['resource|false', 'domain'=>'int', 'type'=>'int', 'protocol'=>'int'],
'socket_get_option' => ['', 'socket'=>'', 'level'=>'int', 'optname'=>'int'],
'socket_getpeername' => ['bool', 'socket'=>'', '&addr'=>'string', '&port='=>'int'],
'socket_getsockname' => ['bool', 'socket'=>'', '&addr'=>'string', '&port='=>'int'],
'socket_import_stream' => ['', 'stream'=>''],
'socket_last_error' => ['int', 'socket='=>''],
'socket_listen' => ['bool', 'socket'=>'', 'backlog='=>'int'],
'socket_read' => ['string', 'socket'=>'', 'length'=>'int', 'type='=>'int'],
'socket_read' => ['string|false', 'socket'=>'', 'length'=>'int', 'type='=>'int'],
'socket_recvfrom' => ['int', 'socket'=>'', '&buf'=>'string', 'len'=>'int', 'flags'=>'int', '&name'=>'string', '&port='=>'int'],
'socket_recv' => ['int', 'socket'=>'', '&buf'=>'string', 'len'=>'int', 'flags'=>'int'],
'socket_recvmsg' => ['int', 'socket'=>'resource', 'message'=>'string', 'flags='=>'int'],