Skip to content

Commit 54361ed

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

stubs/stream_socket_client.stub

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
*/
99
function stream_socket_client(
1010
string $address,
11-
int &$error_code = null,
12-
string &$error_message = null,
13-
float $timeout = null,
11+
int|null &$error_code = null,
12+
string|null &$error_message = null,
13+
float|null $timeout = null,
1414
int $flags = STREAM_CLIENT_CONNECT,
1515
$context = null
1616
) {

stubs/stream_socket_server.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
*/
99
function stream_socket_server(
1010
string $address,
11-
int &$error_code = null,
12-
string &$error_message = null,
11+
int|null &$error_code = null,
12+
string|null &$error_message = null,
1313
int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN,
1414
$context = null
1515
) {

0 commit comments

Comments
 (0)