Skip to content

Commit b883a48

Browse files
committed
fix(stubs): specify the parameters as actual references
1 parent c4a68f4 commit b883a48

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stubs/stream_socket_client.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77
function stream_socket_client(
88
string $address,
9-
int $error_code = null,
10-
string $error_message = null,
9+
int &$error_code = null,
10+
string &$error_message = null,
1111
float $timeout = null,
1212
int $flags = STREAM_CLIENT_CONNECT,
1313
resource $context = null

stubs/stream_socket_server.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77
function stream_socket_server(
88
string $address,
9-
int $error_code = null,
10-
string $error_message = null,
9+
int &$error_code = null,
10+
string &$error_message = null,
1111
int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN,
1212
resource $context = null
1313
): resource|false {

0 commit comments

Comments
 (0)