diff --git a/system/CLI/BaseCommand.php b/system/CLI/BaseCommand.php index afeb80eb5267..6d4f24f08696 100644 --- a/system/CLI/BaseCommand.php +++ b/system/CLI/BaseCommand.php @@ -102,6 +102,8 @@ public function __construct(LoggerInterface $logger, Commands $commands) * @param array $params * * @return int|void + * + * @deprecated 4.6.1 Using `void` as a return value is deprecated. Use `int` to return the exit code. */ abstract public function run(array $params); @@ -113,6 +115,8 @@ abstract public function run(array $params); * @return int|void * * @throws ReflectionException + * + * @deprecated 4.6.1 Using `void` as a return value is deprecated. Use `int` to return the exit code. */ protected function call(string $command, array $params = []) { diff --git a/system/CLI/Console.php b/system/CLI/Console.php index 325eaa7b455c..ca9d02f9fe23 100644 --- a/system/CLI/Console.php +++ b/system/CLI/Console.php @@ -31,6 +31,8 @@ class Console * @return int|void Exit code * * @throws Exception + * + * @deprecated 4.6.1 Using `void` as a return value is deprecated. Use `int` to return the exit code. */ public function run() {