Skip to content

Commit 1038814

Browse files
committed
fix(stubs): mark parameters as explicitly nullable
1 parent 17dd8a6 commit 1038814

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

stubs/stream_socket_client.stub

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
<?php
22

33
/**
4-
* @param-out int $error_code
5-
* @param-out string $error_message
4+
* @param-out int|null $error_code
5+
* @param-out string|null $error_message
6+
* @param float|null $timeout
67
* @param resource|null $context
78
* @return resource|false
89
*/
910
function stream_socket_client(
1011
string $address,
11-
int &$error_code = null,
12-
string &$error_message = null,
13-
float $timeout = null,
12+
&$error_code = null,
13+
&$error_message = null,
14+
$timeout = null,
1415
int $flags = STREAM_CLIENT_CONNECT,
1516
$context = null
1617
) {

stubs/stream_socket_server.stub

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?php
22

33
/**
4-
* @param-out int $error_code
5-
* @param-out string $error_message
4+
* @param-out int|null $error_code
5+
* @param-out string|null $error_message
66
* @param resource|null $context
77
* @return resource|false
88
*/
99
function stream_socket_server(
1010
string $address,
11-
int &$error_code = null,
12-
string &$error_message = null,
11+
&$error_code = null,
12+
&$error_message = null,
1313
int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN,
1414
$context = null
1515
) {

0 commit comments

Comments
 (0)