Skip to content

Commit 25e2dec

Browse files
committed
Add stream_socket_{client,server} stubs for @param-out
1 parent c87456e commit 25e2dec

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

stubs/stream_socket_client.stub

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* @param-out int $error_code
5+
* @param-out string $error_message
6+
*/
7+
function stream_socket_client(
8+
string $address,
9+
int $error_code = null,
10+
string $error_message = null,
11+
float $timeout = null,
12+
int $flags = STREAM_CLIENT_CONNECT,
13+
resource $context = null
14+
): resource|false {
15+
}

stubs/stream_socket_server.stub

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
/**
4+
* @param-out int $error_code
5+
* @param-out string $error_message
6+
*/
7+
function stream_socket_server(
8+
string $address,
9+
int $error_code = null,
10+
string $error_message = null,
11+
int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN,
12+
resource $context = null
13+
): resource|false {
14+
}

0 commit comments

Comments
 (0)