mirror of
https://github.com/danog/ipc.git
synced 2024-11-26 20:15:05 +01:00
Fix typehint
This commit is contained in:
parent
1ee91452f4
commit
5388fa0ab4
@ -134,7 +134,7 @@ class IpcServer
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Promise<ChanneledSocket|null>
|
||||
* @return Promise<ChannelledSocket|null>
|
||||
*
|
||||
* @throws PendingAcceptError If another accept request is pending.
|
||||
*/
|
||||
|
@ -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());
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user