Skip to content

Commit

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

* 修复测试

* 修复测试
  • Loading branch information
Yurunsoft authored Apr 18, 2024
1 parent 348e972 commit afb2950
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 afb2950

Please sign in to comment.