From fa3dcf493062a39960f98b1ea5b97237747b5c64 Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Wed, 4 Jun 2025 11:13:43 +0300 Subject: [PATCH] =?UTF-8?q?refactor:=20Deprecated=20method=20of=20returnin?= =?UTF-8?q?g=20`void'=20in=20=D0=A1ommands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/CLI/BaseCommand.php | 4 ++++ system/CLI/Console.php | 2 ++ 2 files changed, 6 insertions(+) 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() {