Skip to content

Commit

Permalink
修复 Swoole 测试的 Event::wait() 警告报错 (#693)
Browse files Browse the repository at this point in the history
* 修复 Swoole 测试的 Event::wait() 警告报错

* 修复测试

* 修复测试
  • Loading branch information
Yurunsoft committed Apr 27, 2024
1 parent f687b08 commit fbf8f4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/Components/swoole/tests/unit/Component/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
'Imi\Swoole\Test\Component\Async',
'Imi\Swoole\Test\Component\Pool',
],
// 'ignoreNamespace' => [
// ],
'ignorePaths' => [
\dirname(__DIR__) . \DIRECTORY_SEPARATOR . 'test.php',
],

// 组件命名空间
'components' => [
Expand Down
3 changes: 2 additions & 1 deletion src/Util/DocBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fbf8f4d

Please sign in to comment.