Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions conf/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ parameters:
- ../stubs/typeCheckingFunctions.stub
- ../stubs/Countable.stub
- ../stubs/file.stub
- ../stubs/stream_socket_client.stub
- ../stubs/stream_socket_server.stub
earlyTerminatingMethodCalls: []
earlyTerminatingFunctionCalls: []
resultCachePath: %tmpDir%/resultCache.php
Expand Down
20 changes: 20 additions & 0 deletions stubs/stream_socket_client.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* @param int|null $error_code
* @param-out int|null $error_code
* @param string|null $error_message
* @param-out string|null $error_message
* @param float|null $timeout
* @param resource|null $context
* @return resource|false
*/
function stream_socket_client(
string $address,
&$error_code = null,
&$error_message = null,
$timeout = null,
int $flags = STREAM_CLIENT_CONNECT,
$context = null
) {
}
18 changes: 18 additions & 0 deletions stubs/stream_socket_server.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/**
* @param int|null $error_code
* @param-out int|null $error_code
* @param string|null $error_message
* @param-out string|null $error_message
* @param resource|null $context
* @return resource|false
*/
function stream_socket_server(
string $address,
&$error_code = null,
&$error_message = null,
int $flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN,
$context = null
) {
}
Loading