Skip to content

Commit

Permalink
Update: 修复代码分析
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Oct 18, 2023
1 parent bc13e06 commit f52044f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
10 changes: 10 additions & 0 deletions phpstan-baseline/baseline-core.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
parameters:
ignoreErrors:
-
message: "#^Cannot access constant class on array\\<Imi\\\\Bean\\\\Annotation\\\\Base\\>\\|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
Expand Down
4 changes: 1 addition & 3 deletions src/Server/TcpServer/ReceiveHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ class ReceiveHandler implements IReceiveHandler

/**
* 构造方法.
*
* @param string[] $middlewares 中间件数组
*/
public function __construct(
/**
* 中间件数组.
* @var array<string|object> 中间件数组
*/
protected array $middlewares
) {
Expand Down
4 changes: 1 addition & 3 deletions src/Server/UdpServer/PacketHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ class PacketHandler implements IPacketHandler

/**
* 构造方法.
*
* @param string[] $middlewares 中间件数组
*/
public function __construct(
/**
* 中间件数组.
* @var array<string|object> 中间件数组
*/
protected array $middlewares
) {
Expand Down
4 changes: 1 addition & 3 deletions src/Server/WebSocket/MessageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ class MessageHandler implements IMessageHandler

/**
* 构造方法.
*
* @param string[] $middlewares 中间件数组
*/
public function __construct(
/**
* 中间件数组.
* @var array<string|object> 中间件数组
*/
protected array $middlewares
) {
Expand Down

0 comments on commit f52044f

Please sign in to comment.