1
0
mirror of https://github.com/danog/ipc.git synced 2024-11-26 20:15:05 +01:00

Fix typehint

This commit is contained in:
Daniil Gentili 2020-09-25 16:50:16 +02:00
parent 1ee91452f4
commit 5388fa0ab4
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 3 additions and 3 deletions

View File

@ -134,7 +134,7 @@ class IpcServer
}
/**
* @return Promise<ChanneledSocket|null>
* @return Promise<ChannelledSocket|null>
*
* @throws PendingAcceptError If another accept request is pending.
*/

View File

@ -18,7 +18,7 @@ return function (Channel $channel) use ($argv) {
$socket = yield $server->accept();
if (!$socket instanceof ChannelledSocket) {
throw new \RuntimeException('Socket is not instance of ChanneledSocket');
throw new \RuntimeException('Socket is not instance of ChannelledSocket');
}
while (yield $socket->receive());

View File

@ -18,7 +18,7 @@ return function (Channel $channel) use ($argv) {
$socket = yield $server->accept();
if (!$socket instanceof ChannelledSocket) {
throw new \RuntimeException('Socket is not instance of ChanneledSocket');
throw new \RuntimeException('Socket is not instance of ChannelledSocket');
}
$ping = yield $socket->receive();