From f52044fa4c7762a536eff11ba08afd800135f098 Mon Sep 17 00:00:00 2001 From: auooru Date: Wed, 18 Oct 2023 20:15:54 +0800 Subject: [PATCH] =?UTF-8?q?Update:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpstan-baseline/baseline-core.neon | 10 ++++++++++ src/Server/TcpServer/ReceiveHandler.php | 4 +--- src/Server/UdpServer/PacketHandler.php | 4 +--- src/Server/WebSocket/MessageHandler.php | 4 +--- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/phpstan-baseline/baseline-core.neon b/phpstan-baseline/baseline-core.neon index d6fed6e517..d68cd7d262 100644 --- a/phpstan-baseline/baseline-core.neon +++ b/phpstan-baseline/baseline-core.neon @@ -1,5 +1,15 @@ parameters: ignoreErrors: + - + message: "#^Cannot access constant class on array\\\\|Imi\\\\Bean\\\\Annotation\\\\Base\\.$#" + count: 1 + path: ../src/Bean/AnnotationParser.php + + - + message: "#^Creating callable from a non\\-native method Imi\\\\Redis\\\\RedisHandler\\:\\:_serialize\\(\\)\\.$#" + count: 4 + path: ../src/Cache/Handler/RedisHash.php + - message: "#^If condition is always false\\.$#" count: 3 diff --git a/src/Server/TcpServer/ReceiveHandler.php b/src/Server/TcpServer/ReceiveHandler.php index 28dc6f1b9a..82ce163344 100644 --- a/src/Server/TcpServer/ReceiveHandler.php +++ b/src/Server/TcpServer/ReceiveHandler.php @@ -16,12 +16,10 @@ class ReceiveHandler implements IReceiveHandler /** * 构造方法. - * - * @param string[] $middlewares 中间件数组 */ public function __construct( /** - * 中间件数组. + * @var array 中间件数组 */ protected array $middlewares ) { diff --git a/src/Server/UdpServer/PacketHandler.php b/src/Server/UdpServer/PacketHandler.php index 3ca68ca944..f2c823b616 100644 --- a/src/Server/UdpServer/PacketHandler.php +++ b/src/Server/UdpServer/PacketHandler.php @@ -16,12 +16,10 @@ class PacketHandler implements IPacketHandler /** * 构造方法. - * - * @param string[] $middlewares 中间件数组 */ public function __construct( /** - * 中间件数组. + * @var array 中间件数组 */ protected array $middlewares ) { diff --git a/src/Server/WebSocket/MessageHandler.php b/src/Server/WebSocket/MessageHandler.php index be6bceafa6..bcdbd03a8f 100644 --- a/src/Server/WebSocket/MessageHandler.php +++ b/src/Server/WebSocket/MessageHandler.php @@ -16,12 +16,10 @@ class MessageHandler implements IMessageHandler /** * 构造方法. - * - * @param string[] $middlewares 中间件数组 */ public function __construct( /** - * 中间件数组. + * @var array 中间件数组 */ protected array $middlewares ) {