Skip to content

Commit 9f2b2f3

Browse files
committed
Revert BC break
1 parent c8b247d commit 9f2b2f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/sockets/sockets.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,13 +2046,13 @@ function socket_read(Socket $socket, int $length, int $mode = PHP_BINARY_READ):
20462046
* @param string $address
20472047
* @param int $port
20482048
*/
2049-
function socket_getsockname(Socket $socket, &$address, ?int &$objint = null): bool {}
2049+
function socket_getsockname(Socket $socket, &$address, &$port = null): bool {}
20502050

20512051
/**
20522052
* @param string $address
20532053
* @param int $port
20542054
*/
2055-
function socket_getpeername(Socket $socket, &$address, ?int &$objint = null): bool {}
2055+
function socket_getpeername(Socket $socket, &$address, &$port = null): bool {}
20562056

20572057
function socket_create(int $domain, int $type, int $protocol): Socket|false {}
20582058

ext/sockets/sockets_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)