Skip to content

Commit 9b8ff09

Browse files
committed
ide辅助提示
1 parent c8ca63f commit 9b8ff09

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/CoroutineSingleTon.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ trait CoroutineSingleTon
1010
{
1111
private static $instance = [];
1212

13-
static function getInstance(...$args)
13+
/**
14+
* @param mixed ...$args
15+
* @return static
16+
*/
17+
public static function getInstance(...$args)
1418
{
1519
$cid = Coroutine::getCid();
1620
if(!isset(static::$instance[$cid])){

src/Process/ProcessHelper.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
namespace EasySwoole\Component\Process;
1010

1111

12+
use Swoole\Server;
13+
1214
class ProcessHelper
1315
{
14-
static function register(\swoole_server $server,AbstractProcess $process):bool
16+
static function register(Server $server,AbstractProcess $process):bool
1517
{
1618
return $server->addProcess($process->getProcess());
1719
}

src/Singleton.php

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ trait Singleton
1313
{
1414
private static $instance;
1515

16+
/**
17+
* @param mixed ...$args
18+
* @return static
19+
*/
1620
static function getInstance(...$args)
1721
{
1822
if(!isset(static::$instance)){

0 commit comments

Comments
 (0)