Skip to content

Commit 848ae09

Browse files
authored
docs(command): add @param-closure-this annotation for better IDE support (#7611)
1 parent 0ed66a8 commit 848ae09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Console.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class Console
2626
*/
2727
protected static $commands = [];
2828

29+
/**
30+
* @param-closure-this \Hyperf\Command\ClosureCommand $command
31+
*/
2932
public static function command(string $signature, Closure $command): ClosureCommand
3033
{
3134
return tap(make(ClosureCommand::class, [

0 commit comments

Comments
 (0)