Skip to content

Commit

Permalink
Merge pull request #6388 from kenjis/fix-phpdocs-CLI
Browse files Browse the repository at this point in the history
docs: add/fix @return types in CLI
  • Loading branch information
kenjis authored Aug 18, 2022
2 parents e6f167f + c1ddca8 commit f5ed714
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions system/CLI/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public function __construct(LoggerInterface $logger, Commands $commands)
* Actually execute a command.
*
* @param array<int|string, string|null> $params
*
* @return int|void
*/
abstract public function run(array $params);

Expand Down
2 changes: 2 additions & 0 deletions system/CLI/Commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public function __construct($logger = null)

/**
* Runs a command given
*
* @return int|void
*/
public function run(string $command, array $params)
{
Expand Down
2 changes: 1 addition & 1 deletion system/CLI/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Console
*
* @throws Exception
*
* @return mixed
* @return int|void
*/
public function run()
{
Expand Down

0 comments on commit f5ed714

Please sign in to comment.