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 ) {