From a4c78874e4623580703539301300d9ce0071187d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 13 Jan 2022 18:41:15 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- Server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server.php b/Server.php index 5608bd5..f1796ac 100644 --- a/Server.php +++ b/Server.php @@ -4,6 +4,7 @@ namespace Kiri\Server; use Exception; +use JetBrains\PhpStorm\Pure; use Kiri; use Kiri\Abstracts\Config; use Kiri\Annotation\Inject; @@ -146,9 +147,8 @@ class Server extends HttpService /** * @return \Swoole\Http\Server|\Swoole\Server|\Swoole\WebSocket\Server|null - * @throws \ReflectionException */ - public function getServer(): \Swoole\Http\Server|\Swoole\Server|\Swoole\WebSocket\Server|null + #[Pure] public function getServer(): \Swoole\Http\Server|\Swoole\Server|\Swoole\WebSocket\Server|null { return $this->manager->getServer(); }