From 5388fa0ab42250f0c96fdaffae46a7724a9457f4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 25 Sep 2020 16:50:16 +0200 Subject: [PATCH] Fix typehint --- lib/IpcServer.php | 2 +- test/Fixtures/echoServer.php | 2 +- test/Fixtures/server.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/IpcServer.php b/lib/IpcServer.php index f964623..77947df 100644 --- a/lib/IpcServer.php +++ b/lib/IpcServer.php @@ -134,7 +134,7 @@ class IpcServer } /** - * @return Promise + * @return Promise * * @throws PendingAcceptError If another accept request is pending. */ diff --git a/test/Fixtures/echoServer.php b/test/Fixtures/echoServer.php index f807865..e02c38b 100644 --- a/test/Fixtures/echoServer.php +++ b/test/Fixtures/echoServer.php @@ -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()); diff --git a/test/Fixtures/server.php b/test/Fixtures/server.php index c99fa7d..3b6dc49 100644 --- a/test/Fixtures/server.php +++ b/test/Fixtures/server.php @@ -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();