diff --git a/src/Components/access-control/test/Tool/TestTool.php b/src/Components/access-control/test/Tool/TestTool.php index e7248d614b..71f258dbbd 100644 --- a/src/Components/access-control/test/Tool/TestTool.php +++ b/src/Components/access-control/test/Tool/TestTool.php @@ -21,8 +21,6 @@ public function __construct() /** * @Operation("test") - * - * @return void */ public function test(): void { diff --git a/src/Components/amqp/src/Contract/IMessage.php b/src/Components/amqp/src/Contract/IMessage.php index 717bb11a7e..534b931a36 100644 --- a/src/Components/amqp/src/Contract/IMessage.php +++ b/src/Components/amqp/src/Contract/IMessage.php @@ -107,8 +107,6 @@ public function setTicket(?int $ticket); /** * 设置 AMQP 消息. - * - * @return void */ public function setAMQPMessage(AMQPMessage $amqpMessage): void; diff --git a/src/Components/amqp/tests/bootstrap.php b/src/Components/amqp/tests/bootstrap.php index 6aa06e37fb..e8de1c32b4 100644 --- a/src/Components/amqp/tests/bootstrap.php +++ b/src/Components/amqp/tests/bootstrap.php @@ -34,8 +34,6 @@ function checkHttpServerStatus() /** * 开启服务器. - * - * @return void */ function startServer(): void { diff --git a/src/Components/apidoc/example/ApiServer/Controller/IndexController.php b/src/Components/apidoc/example/ApiServer/Controller/IndexController.php index 44907e1dde..25367138d8 100644 --- a/src/Components/apidoc/example/ApiServer/Controller/IndexController.php +++ b/src/Components/apidoc/example/ApiServer/Controller/IndexController.php @@ -20,8 +20,6 @@ class IndexController extends HttpController * @Action * * @Route("/") - * - * @return void */ public function index(): void { @@ -34,8 +32,6 @@ public function index(): void * * @param string $username 用户名 * @param int $password 密码 - * - * @return void */ public function login(string $username, int $password): void { @@ -45,8 +41,6 @@ public function login(string $username, int $password): void * @Action * * @Route(method={"GET", "POST"}) - * - * @return void */ public function multiMethod1(int $id, int $type, array $tags): void { @@ -58,8 +52,6 @@ public function multiMethod1(int $id, int $type, array $tags): void * @Route(method={"PUT", "POST"}) * * @param int[] $tags 标签 - * - * @return void */ public function multiMethod2(int $id, int $type, array $tags): void { @@ -79,8 +71,6 @@ public function multiMethod2(int $id, int $type, array $tags): void * @param string $username 用户名 * @param int $password 密码 * @param string $birthday 生日 - * - * @return void */ public function register(string $username, int $password, string $birthday): void { @@ -88,8 +78,6 @@ public function register(string $username, int $password, string $birthday): voi /** * @Action - * - * @return void */ public function get(int $id): void { diff --git a/src/Components/apidoc/src/Tool/DocTool.php b/src/Components/apidoc/src/Tool/DocTool.php index 73851c8a0c..0a07b29d4a 100644 --- a/src/Components/apidoc/src/Tool/DocTool.php +++ b/src/Components/apidoc/src/Tool/DocTool.php @@ -103,8 +103,6 @@ public function api(string $to, ?string $namespace): void /** * 处理路由. - * - * @return void */ private function parseRoute(Analysis $analysis, array $controllerClasses): void { diff --git a/src/Components/grpc/tests/bootstrap.php b/src/Components/grpc/tests/bootstrap.php index e6e7418f4b..da29ff2c43 100644 --- a/src/Components/grpc/tests/bootstrap.php +++ b/src/Components/grpc/tests/bootstrap.php @@ -32,8 +32,6 @@ function checkHttpServerStatus() /** * 开启服务器. - * - * @return void */ function startServer(): void { diff --git a/src/Components/jwt/tests/Unit/JWTTest.php b/src/Components/jwt/tests/Unit/JWTTest.php index 703fd03507..e6ef8e1cfb 100644 --- a/src/Components/jwt/tests/Unit/JWTTest.php +++ b/src/Components/jwt/tests/Unit/JWTTest.php @@ -11,9 +11,6 @@ class JWTTest extends TestCase { - /** - * @return void - */ public function testJWT(): void { $data = [ @@ -44,9 +41,6 @@ public function testJWT(): void $token2 = JWT::parseToken($tokenStr, null, true); // 验证 } - /** - * @return void - */ public function testJWTValidation(): void { $excepted = [ @@ -59,9 +53,6 @@ public function testJWTValidation(): void $this->assertEquals(json_encode($excepted), json_encode($data)); } - /** - * @return void - */ public function testJWTValidateFail(): void { $this->expectException(\Imi\JWT\Exception\InvalidTokenException::class); diff --git a/src/Components/kafka/src/Pool/KafkaPool.php b/src/Components/kafka/src/Pool/KafkaPool.php index 868bb60d40..a23eeefa75 100644 --- a/src/Components/kafka/src/Pool/KafkaPool.php +++ b/src/Components/kafka/src/Pool/KafkaPool.php @@ -90,8 +90,6 @@ public static function getInstance(?string $poolName = null): Producer /** * 释放连接实例. - * - * @return void */ public static function release(Producer $client): void { diff --git a/src/Components/kafka/tests/bootstrap.php b/src/Components/kafka/tests/bootstrap.php index bb6d1a5e8c..b08cacb2fd 100644 --- a/src/Components/kafka/tests/bootstrap.php +++ b/src/Components/kafka/tests/bootstrap.php @@ -34,8 +34,6 @@ function checkHttpServerStatus() /** * 开启服务器. - * - * @return void */ function startServer(): void { diff --git a/src/Components/mqtt/tests/bootstrap.php b/src/Components/mqtt/tests/bootstrap.php index 8c4f6cf13b..8d724411d2 100644 --- a/src/Components/mqtt/tests/bootstrap.php +++ b/src/Components/mqtt/tests/bootstrap.php @@ -36,8 +36,6 @@ function checkMQTTServerStatus() /** * 开启服务器. - * - * @return void */ function startServer(): void { diff --git a/src/Components/queue/src/Tool/QueueTool.php b/src/Components/queue/src/Tool/QueueTool.php index 2b4727dc07..5cad7067d9 100644 --- a/src/Components/queue/src/Tool/QueueTool.php +++ b/src/Components/queue/src/Tool/QueueTool.php @@ -21,8 +21,6 @@ class QueueTool extends BaseCommand * @CommandAction(name="status", description="获取队列状态") * * @Argument(name="queue", type="string", required=true) - * - * @return void */ public function status(string $queue): void { @@ -35,8 +33,6 @@ public function status(string $queue): void * @CommandAction(name="restoreFail", description="将失败消息恢复到队列") * * @Argument(name="queue", type="string", required=true) - * - * @return void */ public function restoreFail(string $queue): void { @@ -49,8 +45,6 @@ public function restoreFail(string $queue): void * @CommandAction(name="restoreTimeout", description="将超时消息恢复到队列") * * @Argument(name="queue", type="string", required=true) - * - * @return void */ public function restoreTimeout(string $queue): void { diff --git a/src/Components/swoole-tracker/example/HttpServer/ApiServer/Controller/IndexController.php b/src/Components/swoole-tracker/example/HttpServer/ApiServer/Controller/IndexController.php index bf3f70606a..cb7924f576 100644 --- a/src/Components/swoole-tracker/example/HttpServer/ApiServer/Controller/IndexController.php +++ b/src/Components/swoole-tracker/example/HttpServer/ApiServer/Controller/IndexController.php @@ -30,8 +30,6 @@ public function index() /** * @Action - * - * @return void */ public function fail(): void { diff --git a/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/Http/HandShake.php b/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/Http/HandShake.php index 13a99bdbfa..ecad807e3f 100644 --- a/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/Http/HandShake.php +++ b/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/Http/HandShake.php @@ -26,8 +26,6 @@ class HandShake extends HttpController * @Action * * @Route("/testHandShake") - * - * @return void */ public function index(): void { diff --git a/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/Http/IndexController.php b/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/Http/IndexController.php index 854e4eba92..3fb8950560 100644 --- a/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/Http/IndexController.php +++ b/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/Http/IndexController.php @@ -28,8 +28,6 @@ class IndexController extends HttpController * @Route("/") * * @WSConfig(parserClass=\Imi\Server\DataParser\JsonObjectParser::class) - * - * @return void */ public function index(): void { diff --git a/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/TestController.php b/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/TestController.php index 1be325f24a..6dd4f8b0ff 100644 --- a/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/TestController.php +++ b/src/Components/swoole-tracker/example/WebSocketServer/MainServer/Controller/TestController.php @@ -48,8 +48,6 @@ public function login($data) * @WSMiddleware(Imi\SwooleTracker\Example\WebSocketServer\MainServer\Middleware\Test::class) * * @param mixed $data - * - * @return void */ public function send($data): void { diff --git a/src/Components/swoole/tests/unit/HttpServer/Tests/HttpsTest.php b/src/Components/swoole/tests/unit/HttpServer/Tests/HttpsTest.php index bee8cfb364..42ff2b7205 100644 --- a/src/Components/swoole/tests/unit/HttpServer/Tests/HttpsTest.php +++ b/src/Components/swoole/tests/unit/HttpServer/Tests/HttpsTest.php @@ -35,8 +35,6 @@ public function testUri(): void /** * 控制器指定 server 测试. - * - * @return void */ public function testOutsideController(): void { diff --git a/tests/unit/Component/Bean/ReferenceBeanAspect.php b/tests/unit/Component/Bean/ReferenceBeanAspect.php index def3217cb7..4907931166 100644 --- a/tests/unit/Component/Bean/ReferenceBeanAspect.php +++ b/tests/unit/Component/Bean/ReferenceBeanAspect.php @@ -83,8 +83,6 @@ public function &around(AroundJoinPoint $joinPoint) * "Imi\Test\Component\Bean\ReferenceBean::*" * } * ) - * - * @return void */ public function afterReturning(AfterReturningJoinPoint $joinPoint): void { @@ -99,8 +97,6 @@ public function afterReturning(AfterReturningJoinPoint $joinPoint): void * "Imi\Test\Component\Bean\ReferenceBean::*" * } * ) - * - * @return void */ public function afterThrowing(AfterThrowingJoinPoint $joinPoint): void {