Skip to content

Commit f5ed714

Browse files
authored
Merge pull request #6388 from kenjis/fix-phpdocs-CLI
docs: add/fix @return types in CLI
2 parents e6f167f + c1ddca8 commit f5ed714

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

system/CLI/BaseCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public function __construct(LoggerInterface $logger, Commands $commands)
9797
* Actually execute a command.
9898
*
9999
* @param array<int|string, string|null> $params
100+
*
101+
* @return int|void
100102
*/
101103
abstract public function run(array $params);
102104

system/CLI/Commands.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public function __construct($logger = null)
4848

4949
/**
5050
* Runs a command given
51+
*
52+
* @return int|void
5153
*/
5254
public function run(string $command, array $params)
5355
{

system/CLI/Console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Console
2525
*
2626
* @throws Exception
2727
*
28-
* @return mixed
28+
* @return int|void
2929
*/
3030
public function run()
3131
{

0 commit comments

Comments
 (0)