diff --git a/generated/8.1/sockets.php b/generated/8.1/sockets.php index 9fdaa80a..a69b7455 100644 --- a/generated/8.1/sockets.php +++ b/generated/8.1/sockets.php @@ -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 * @@ -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 * */ diff --git a/generated/8.2/sockets.php b/generated/8.2/sockets.php index 7cb939e9..2f06df57 100644 --- a/generated/8.2/sockets.php +++ b/generated/8.2/sockets.php @@ -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 * @@ -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 * */ diff --git a/generated/8.3/sockets.php b/generated/8.3/sockets.php index 7cb939e9..2f06df57 100644 --- a/generated/8.3/sockets.php +++ b/generated/8.3/sockets.php @@ -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 * @@ -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 * */ diff --git a/generated/8.4/sockets.php b/generated/8.4/sockets.php index 3617c8f5..352cedf8 100644 --- a/generated/8.4/sockets.php +++ b/generated/8.4/sockets.php @@ -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 @@ -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 * */ diff --git a/generated/8.5/sockets.php b/generated/8.5/sockets.php index 3617c8f5..352cedf8 100644 --- a/generated/8.5/sockets.php +++ b/generated/8.5/sockets.php @@ -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 @@ -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 * */ diff --git a/generator/config/CustomPhpStanFunctionMap.php b/generator/config/CustomPhpStanFunctionMap.php index 72d00e18..b0ff4227 100644 --- a/generator/config/CustomPhpStanFunctionMap.php +++ b/generator/config/CustomPhpStanFunctionMap.php @@ -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 ];