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
4 changes: 2 additions & 2 deletions generated/8.1/sockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function socket_addrinfo_connect(\AddressInfo $address): \Socket
* port number.
* @param array $hints Hints provide criteria for selecting addresses returned. You may specify the
* hints as defined by getadrinfo.
* @return resource[] Returns an array of AddressInfo instances that can be used with the other socket_addrinfo functions.
* @return \AddressInfo[] Returns an array of AddressInfo instances that can be used with the other socket_addrinfo functions.
* On failure, FALSE is returned.
* @throws SocketsException
*
Expand Down Expand Up @@ -235,7 +235,7 @@ function socket_create_listen(int $port, int $backlog = 128): \Socket
*
* See socket_create for the full list of supported
* protocols.
* @param resource[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @param \Socket[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @throws SocketsException
*
*/
Expand Down
4 changes: 2 additions & 2 deletions generated/8.2/sockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function socket_addrinfo_connect(\AddressInfo $address): \Socket
* Otherwise it designates a network service name, which is mapped to a port by the operating system.
* @param array $hints Hints provide criteria for selecting addresses returned. You may specify the
* hints as defined by getaddrinfo.
* @return resource[] Returns an array of AddressInfo instances that can be used with the other socket_addrinfo functions.
* @return \AddressInfo[] Returns an array of AddressInfo instances that can be used with the other socket_addrinfo functions.
* On failure, FALSE is returned.
* @throws SocketsException
*
Expand Down Expand Up @@ -235,7 +235,7 @@ function socket_create_listen(int $port, int $backlog = 128): \Socket
*
* See socket_create for the full list of supported
* protocols.
* @param resource[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @param \Socket[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @throws SocketsException
*
*/
Expand Down
4 changes: 2 additions & 2 deletions generated/8.3/sockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function socket_addrinfo_connect(\AddressInfo $address): \Socket
* Otherwise it designates a network service name, which is mapped to a port by the operating system.
* @param array $hints Hints provide criteria for selecting addresses returned. You may specify the
* hints as defined by getaddrinfo.
* @return resource[] Returns an array of AddressInfo instances that can be used with the other socket_addrinfo functions.
* @return \AddressInfo[] Returns an array of AddressInfo instances that can be used with the other socket_addrinfo functions.
* On failure, FALSE is returned.
* @throws SocketsException
*
Expand Down Expand Up @@ -235,7 +235,7 @@ function socket_create_listen(int $port, int $backlog = 128): \Socket
*
* See socket_create for the full list of supported
* protocols.
* @param resource[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @param \Socket[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @throws SocketsException
*
*/
Expand Down
4 changes: 2 additions & 2 deletions generated/8.4/sockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function socket_addrinfo_connect(\AddressInfo $address): \Socket
* Otherwise it designates a network service name, which is mapped to a port by the operating system.
* @param array $hints Hints provide criteria for selecting addresses returned. You may specify the
* hints as defined by getaddrinfo.
* @return resource[] Returns an array of AddressInfo instances that can be used with
* @return \AddressInfo[] Returns an array of AddressInfo instances that can be used with
* the socket_addrinfo_* family of functions.
* On failure, FALSE is returned.
* @throws SocketsException
Expand Down Expand Up @@ -253,7 +253,7 @@ function socket_create_listen(int $port, int $backlog = SOMAXCONN): \Socket
*
* See socket_create for the full list of supported
* protocols.
* @param resource[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @param \Socket[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @throws SocketsException
*
*/
Expand Down
4 changes: 2 additions & 2 deletions generated/8.5/sockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function socket_addrinfo_connect(\AddressInfo $address): \Socket
* Otherwise it designates a network service name, which is mapped to a port by the operating system.
* @param array $hints Hints provide criteria for selecting addresses returned. You may specify the
* hints as defined by getaddrinfo.
* @return resource[] Returns an array of AddressInfo instances that can be used with
* @return \AddressInfo[] Returns an array of AddressInfo instances that can be used with
* the socket_addrinfo_* family of functions.
* On failure, FALSE is returned.
* @throws SocketsException
Expand Down Expand Up @@ -253,7 +253,7 @@ function socket_create_listen(int $port, int $backlog = SOMAXCONN): \Socket
*
* See socket_create for the full list of supported
* protocols.
* @param resource[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @param \Socket[]|null $pair Reference to an array in which the two Socket instances will be inserted.
* @throws SocketsException
*
*/
Expand Down
2 changes: 2 additions & 0 deletions generator/config/CustomPhpStanFunctionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@
'stream_filter_append' => ['resource', 'stream' => 'resource', 'filtername' => 'string', 'read_write' => 'int', 'params' => 'mixed'], // params mixed instead of array
'socket_addrinfo_bind' => ['resource|false', 'addrinfo'=>'resource'], // doesn't return null
'socket_addrinfo_connect' => ['resource|false', 'addrinfo'=>'resource'], // doesn't return null
'socket_addrinfo_lookup' => ['AddressInfo[]|false', 'node'=>'string', 'service='=>'mixed', 'hints='=>'array'], // returns AddressInfo[], not resource[]
'socket_create_pair' => ['bool', 'domain'=>'int', 'type'=>'int', 'protocol'=>'int', '&w_fd'=>'Socket[]'], // fd is Socket, not resource
];