Skip to content

Commit fa3dcf4

Browse files
committed
refactor: Deprecated method of returning `void' in Сommands
1 parent af68358 commit fa3dcf4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

system/CLI/BaseCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ public function __construct(LoggerInterface $logger, Commands $commands)
102102
* @param array<int|string, string|null> $params
103103
*
104104
* @return int|void
105+
*
106+
* @deprecated 4.6.1 Using `void` as a return value is deprecated. Use `int` to return the exit code.
105107
*/
106108
abstract public function run(array $params);
107109

@@ -113,6 +115,8 @@ abstract public function run(array $params);
113115
* @return int|void
114116
*
115117
* @throws ReflectionException
118+
*
119+
* @deprecated 4.6.1 Using `void` as a return value is deprecated. Use `int` to return the exit code.
116120
*/
117121
protected function call(string $command, array $params = [])
118122
{

system/CLI/Console.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class Console
3131
* @return int|void Exit code
3232
*
3333
* @throws Exception
34+
*
35+
* @deprecated 4.6.1 Using `void` as a return value is deprecated. Use `int` to return the exit code.
3436
*/
3537
public function run()
3638
{

0 commit comments

Comments
 (0)