From 7241ca9e33bfbe31e3934613fb9cc228d4e50343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=A3=E8=A8=80=E5=B0=B1=E6=98=AFSiam?= <59419979@qq.com> Date: Thu, 14 Sep 2023 19:48:13 +0800 Subject: [PATCH] Format code (#25) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李铭昕 <715557344@qq.com> --- .php-cs-fixer.php | 1 + src/Channel.php | 1 + src/ConfigProvider.php | 1 + src/Constant.php | 1 + src/Constant/SocketType.php | 1 + src/Coroutine.php | 1 + src/DefaultOption.php | 1 + src/Exception/CoroutineDestroyedException.php | 1 + src/Exception/HttpClientException.php | 1 + src/Exception/InvalidArgumentException.php | 1 + src/Exception/RunningInNonCoroutineException.php | 1 + src/Exception/RuntimeException.php | 1 + src/Exception/SocketClosedException.php | 1 + src/Exception/SocketConnectException.php | 1 + src/Exception/SocketTimeoutException.php | 1 + src/Extension.php | 1 + src/Functions.php | 1 + src/Http/Client.php | 1 + src/Http/EventStream.php | 1 + src/Http/FdGetter.php | 1 + src/Http/RawResponse.php | 1 + src/Http/Server.php | 1 + src/Http/ServerFactory.php | 1 + src/Http/Stream.php | 4 +++- src/Http/V2/Client.php | 1 + src/Http/V2/ClientFactory.php | 1 + src/Http/V2/Request.php | 1 + src/Http/V2/Response.php | 1 + src/Http/WritableConnection.php | 1 + src/ResponseEmitter.php | 1 + src/SafeSocket.php | 1 + src/Signal.php | 1 + src/Socket.php | 1 + src/Socket/SocketFactory.php | 1 + src/Socket/SocketOption.php | 1 + src/WebSocket/Frame.php | 1 + src/WebSocket/Opcode.php | 1 + src/WebSocket/Response.php | 1 + src/WebSocket/WebSocket.php | 1 + tests/Cases/AbstractTestCase.php | 1 + tests/Cases/ChannelTest.php | 1 + tests/Cases/ClientTest.php | 1 + tests/Cases/ConstantTest.php | 1 + tests/Cases/CoroutineTest.php | 1 + tests/Cases/ExampleTest.php | 1 + tests/Cases/ExtensionTest.php | 1 + tests/Cases/Http2ClientTest.php | 1 + tests/Cases/HttpServerTest.php | 1 + tests/Cases/SignalTest.php | 1 + tests/Cases/SocketTest.php | 1 + tests/Cases/WebSocketTest.php | 1 + 51 files changed, 53 insertions(+), 1 deletion(-) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index f9663d3..b56bc7a 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -85,6 +85,7 @@ 'single_quote' => true, 'standardize_not_equals' => true, 'multiline_comment_opening_closing' => true, + 'single_line_empty_body' => false, ]) ->setFinder( PhpCsFixer\Finder::create() diff --git a/src/Channel.php b/src/Channel.php index ede1d7b..2bd7111 100644 --- a/src/Channel.php +++ b/src/Channel.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Hyperf\Engine\Contract\ChannelInterface; diff --git a/src/ConfigProvider.php b/src/ConfigProvider.php index 6cc7b04..9710ca1 100644 --- a/src/ConfigProvider.php +++ b/src/ConfigProvider.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Hyperf\Engine\Contract\Socket\SocketFactoryInterface; diff --git a/src/Constant.php b/src/Constant.php index 48a347b..8d56a83 100644 --- a/src/Constant.php +++ b/src/Constant.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Swoole\Coroutine\Http\Server as HttpServer; diff --git a/src/Constant/SocketType.php b/src/Constant/SocketType.php index 28c60ba..e0179bd 100644 --- a/src/Constant/SocketType.php +++ b/src/Constant/SocketType.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Constant; class SocketType diff --git a/src/Coroutine.php b/src/Coroutine.php index e0cd9a8..72b9be4 100644 --- a/src/Coroutine.php +++ b/src/Coroutine.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use ArrayObject; diff --git a/src/DefaultOption.php b/src/DefaultOption.php index ebbabb8..ba80b7f 100644 --- a/src/DefaultOption.php +++ b/src/DefaultOption.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Hyperf\Engine\Contract\DefaultOptionInterface; diff --git a/src/Exception/CoroutineDestroyedException.php b/src/Exception/CoroutineDestroyedException.php index 1218249..9677ef4 100644 --- a/src/Exception/CoroutineDestroyedException.php +++ b/src/Exception/CoroutineDestroyedException.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Exception; class CoroutineDestroyedException extends RuntimeException diff --git a/src/Exception/HttpClientException.php b/src/Exception/HttpClientException.php index 4680c8d..4af5da4 100644 --- a/src/Exception/HttpClientException.php +++ b/src/Exception/HttpClientException.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Exception; class HttpClientException extends RuntimeException diff --git a/src/Exception/InvalidArgumentException.php b/src/Exception/InvalidArgumentException.php index d34f3aa..db32b9d 100644 --- a/src/Exception/InvalidArgumentException.php +++ b/src/Exception/InvalidArgumentException.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Exception; class InvalidArgumentException extends \InvalidArgumentException diff --git a/src/Exception/RunningInNonCoroutineException.php b/src/Exception/RunningInNonCoroutineException.php index 90f8ddb..e4e328f 100644 --- a/src/Exception/RunningInNonCoroutineException.php +++ b/src/Exception/RunningInNonCoroutineException.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Exception; class RunningInNonCoroutineException extends RuntimeException diff --git a/src/Exception/RuntimeException.php b/src/Exception/RuntimeException.php index 7fba978..1c4519e 100644 --- a/src/Exception/RuntimeException.php +++ b/src/Exception/RuntimeException.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Exception; class RuntimeException extends \RuntimeException diff --git a/src/Exception/SocketClosedException.php b/src/Exception/SocketClosedException.php index 48cd77c..89d0f09 100644 --- a/src/Exception/SocketClosedException.php +++ b/src/Exception/SocketClosedException.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Exception; class SocketClosedException extends RuntimeException diff --git a/src/Exception/SocketConnectException.php b/src/Exception/SocketConnectException.php index 7d3c871..59dcfb6 100644 --- a/src/Exception/SocketConnectException.php +++ b/src/Exception/SocketConnectException.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Exception; class SocketConnectException extends RuntimeException diff --git a/src/Exception/SocketTimeoutException.php b/src/Exception/SocketTimeoutException.php index 1bac754..40acb48 100644 --- a/src/Exception/SocketTimeoutException.php +++ b/src/Exception/SocketTimeoutException.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Exception; class SocketTimeoutException extends RuntimeException diff --git a/src/Extension.php b/src/Extension.php index 8e072a2..642c11b 100644 --- a/src/Extension.php +++ b/src/Extension.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; class Extension diff --git a/src/Functions.php b/src/Functions.php index de62708..0c6294d 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Hyperf\Engine\Contract\WebSocket\FrameInterface; diff --git a/src/Http/Client.php b/src/Http/Client.php index 9d6f9ae..203c85e 100644 --- a/src/Http/Client.php +++ b/src/Http/Client.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http; use Hyperf\Engine\Contract\Http\ClientInterface; diff --git a/src/Http/EventStream.php b/src/Http/EventStream.php index 3beb913..04ac268 100644 --- a/src/Http/EventStream.php +++ b/src/Http/EventStream.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http; use Hyperf\Engine\Contract\Http\Writable; diff --git a/src/Http/FdGetter.php b/src/Http/FdGetter.php index 51ca079..f21d03b 100644 --- a/src/Http/FdGetter.php +++ b/src/Http/FdGetter.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http; use Swoole\Http\Response; diff --git a/src/Http/RawResponse.php b/src/Http/RawResponse.php index 56a5792..bd26e4d 100644 --- a/src/Http/RawResponse.php +++ b/src/Http/RawResponse.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http; use Hyperf\Engine\Contract\Http\RawResponseInterface; diff --git a/src/Http/Server.php b/src/Http/Server.php index 42c3722..c21a36d 100644 --- a/src/Http/Server.php +++ b/src/Http/Server.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http; use Hyperf\Engine\Contract\Http\ServerInterface; diff --git a/src/Http/ServerFactory.php b/src/Http/ServerFactory.php index 87aae29..d0f77ba 100644 --- a/src/Http/ServerFactory.php +++ b/src/Http/ServerFactory.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http; use Hyperf\Contract\StdoutLoggerInterface; diff --git a/src/Http/Stream.php b/src/Http/Stream.php index 9de31c4..ecd049f 100755 --- a/src/Http/Stream.php +++ b/src/Http/Stream.php @@ -9,12 +9,14 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http; use BadMethodCallException; use Hyperf\Engine\Exception\RuntimeException; use Psr\Http\Message\StreamInterface; use Stringable; +use Throwable; class Stream implements StreamInterface, Stringable { @@ -45,7 +47,7 @@ public function __toString(): string { try { return $this->getContents(); - } catch (\Throwable) { + } catch (Throwable) { return ''; } } diff --git a/src/Http/V2/Client.php b/src/Http/V2/Client.php index 6e2f43d..3520d35 100644 --- a/src/Http/V2/Client.php +++ b/src/Http/V2/Client.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http\V2; use Hyperf\Engine\Contract\Http\V2\ClientInterface; diff --git a/src/Http/V2/ClientFactory.php b/src/Http/V2/ClientFactory.php index 3a2affb..23346cb 100644 --- a/src/Http/V2/ClientFactory.php +++ b/src/Http/V2/ClientFactory.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http\V2; use Hyperf\Engine\Contract\Http\V2\ClientFactoryInterface; diff --git a/src/Http/V2/Request.php b/src/Http/V2/Request.php index 7720ab5..ee036d7 100644 --- a/src/Http/V2/Request.php +++ b/src/Http/V2/Request.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http\V2; use Hyperf\Engine\Contract\Http\V2\RequestInterface; diff --git a/src/Http/V2/Response.php b/src/Http/V2/Response.php index c63e710..00a6909 100644 --- a/src/Http/V2/Response.php +++ b/src/Http/V2/Response.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http\V2; use Hyperf\Engine\Contract\Http\V2\ResponseInterface; diff --git a/src/Http/WritableConnection.php b/src/Http/WritableConnection.php index a892906..4c28f10 100644 --- a/src/Http/WritableConnection.php +++ b/src/Http/WritableConnection.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Http; use Hyperf\Engine\Contract\Http\Writable; diff --git a/src/ResponseEmitter.php b/src/ResponseEmitter.php index b589ac9..ac055c4 100644 --- a/src/ResponseEmitter.php +++ b/src/ResponseEmitter.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Hyperf\Contract\StdoutLoggerInterface; diff --git a/src/SafeSocket.php b/src/SafeSocket.php index 4f0121f..85c2f81 100644 --- a/src/SafeSocket.php +++ b/src/SafeSocket.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Hyperf\Engine\Contract\SocketInterface; diff --git a/src/Signal.php b/src/Signal.php index 25111dd..d9ecdd1 100644 --- a/src/Signal.php +++ b/src/Signal.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Hyperf\Engine\Contract\SignalInterface; diff --git a/src/Socket.php b/src/Socket.php index 8fdcee4..5eb96b9 100644 --- a/src/Socket.php +++ b/src/Socket.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine; use Hyperf\Engine\Contract\SocketInterface; diff --git a/src/Socket/SocketFactory.php b/src/Socket/SocketFactory.php index 8d1a0e9..37d3f31 100644 --- a/src/Socket/SocketFactory.php +++ b/src/Socket/SocketFactory.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Socket; use Hyperf\Engine\Contract\Socket\SocketFactoryInterface; diff --git a/src/Socket/SocketOption.php b/src/Socket/SocketOption.php index 0064938..d4ad56a 100644 --- a/src/Socket/SocketOption.php +++ b/src/Socket/SocketOption.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\Socket; use Hyperf\Engine\Contract\Socket\SocketOptionInterface; diff --git a/src/WebSocket/Frame.php b/src/WebSocket/Frame.php index 9c19e2d..eaa540e 100644 --- a/src/WebSocket/Frame.php +++ b/src/WebSocket/Frame.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\WebSocket; use Hyperf\Engine\Contract\WebSocket\FrameInterface; diff --git a/src/WebSocket/Opcode.php b/src/WebSocket/Opcode.php index 8f024fe..d2cebee 100644 --- a/src/WebSocket/Opcode.php +++ b/src/WebSocket/Opcode.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\WebSocket; class Opcode diff --git a/src/WebSocket/Response.php b/src/WebSocket/Response.php index eb7ebd6..15e6adf 100644 --- a/src/WebSocket/Response.php +++ b/src/WebSocket/Response.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\WebSocket; use Hyperf\Engine\Contract\WebSocket\FrameInterface; diff --git a/src/WebSocket/WebSocket.php b/src/WebSocket/WebSocket.php index c5621e6..748a9f5 100644 --- a/src/WebSocket/WebSocket.php +++ b/src/WebSocket/WebSocket.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace Hyperf\Engine\WebSocket; use Hyperf\Engine\Contract\WebSocket\WebSocketInterface; diff --git a/tests/Cases/AbstractTestCase.php b/tests/Cases/AbstractTestCase.php index ddbe921..899bf68 100644 --- a/tests/Cases/AbstractTestCase.php +++ b/tests/Cases/AbstractTestCase.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Mockery; diff --git a/tests/Cases/ChannelTest.php b/tests/Cases/ChannelTest.php index 7a921f5..19ee189 100644 --- a/tests/Cases/ChannelTest.php +++ b/tests/Cases/ChannelTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\Channel; diff --git a/tests/Cases/ClientTest.php b/tests/Cases/ClientTest.php index d453698..bf6b3d8 100644 --- a/tests/Cases/ClientTest.php +++ b/tests/Cases/ClientTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use GuzzleHttp; diff --git a/tests/Cases/ConstantTest.php b/tests/Cases/ConstantTest.php index 3360c72..ee771c5 100644 --- a/tests/Cases/ConstantTest.php +++ b/tests/Cases/ConstantTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\Constant; diff --git a/tests/Cases/CoroutineTest.php b/tests/Cases/CoroutineTest.php index 59e3fd7..b2bed82 100644 --- a/tests/Cases/CoroutineTest.php +++ b/tests/Cases/CoroutineTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use ArrayObject; diff --git a/tests/Cases/ExampleTest.php b/tests/Cases/ExampleTest.php index b0ee9d9..cb86012 100644 --- a/tests/Cases/ExampleTest.php +++ b/tests/Cases/ExampleTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\Constant; diff --git a/tests/Cases/ExtensionTest.php b/tests/Cases/ExtensionTest.php index e429ecd..1e32ca0 100644 --- a/tests/Cases/ExtensionTest.php +++ b/tests/Cases/ExtensionTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\Extension; diff --git a/tests/Cases/Http2ClientTest.php b/tests/Cases/Http2ClientTest.php index cd62faf..7d9b2a4 100644 --- a/tests/Cases/Http2ClientTest.php +++ b/tests/Cases/Http2ClientTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\Http\V2\Client; diff --git a/tests/Cases/HttpServerTest.php b/tests/Cases/HttpServerTest.php index b92397b..0a7e1e4 100644 --- a/tests/Cases/HttpServerTest.php +++ b/tests/Cases/HttpServerTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\Http\Client; diff --git a/tests/Cases/SignalTest.php b/tests/Cases/SignalTest.php index 1d56676..a37d7b6 100644 --- a/tests/Cases/SignalTest.php +++ b/tests/Cases/SignalTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\Signal; diff --git a/tests/Cases/SocketTest.php b/tests/Cases/SocketTest.php index dc6c364..50cecf4 100644 --- a/tests/Cases/SocketTest.php +++ b/tests/Cases/SocketTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\Exception\SocketClosedException; diff --git a/tests/Cases/WebSocketTest.php b/tests/Cases/WebSocketTest.php index b05de00..26b8de3 100644 --- a/tests/Cases/WebSocketTest.php +++ b/tests/Cases/WebSocketTest.php @@ -9,6 +9,7 @@ * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ + namespace HyperfTest\Cases; use Hyperf\Engine\WebSocket\Frame;