diff --git a/src/Components/swoole/tests/unit/Component/config/config.php b/src/Components/swoole/tests/unit/Component/config/config.php index 7e2aaabfc1..07837ab1d6 100644 --- a/src/Components/swoole/tests/unit/Component/config/config.php +++ b/src/Components/swoole/tests/unit/Component/config/config.php @@ -16,8 +16,9 @@ 'Imi\Swoole\Test\Component\Async', 'Imi\Swoole\Test\Component\Pool', ], - // 'ignoreNamespace' => [ - // ], + 'ignorePaths' => [ + \dirname(__DIR__) . \DIRECTORY_SEPARATOR . 'test.php', + ], // 组件命名空间 'components' => [ diff --git a/src/Util/DocBlock.php b/src/Util/DocBlock.php index e454bf7a21..295190c9c9 100644 --- a/src/Util/DocBlock.php +++ b/src/Util/DocBlock.php @@ -19,7 +19,8 @@ public static function getFactory(): DocBlockFactory { if (null === self::$factory) { - self::$factory = DocBlockFactory::createInstance(); + // @phpstan-ignore-next-line + return self::$factory = DocBlockFactory::createInstance(); } return self::$factory;