From 6538738e1e7cccd3c556e1ce17e9ea0a8c59592e Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 10 Dec 2024 21:13:07 +0700 Subject: [PATCH] refactor: return EXIT_ERROR on check verify command --- system/CLI/Commands.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/CLI/Commands.php b/system/CLI/Commands.php index d8509b0c0722..732cb370382d 100644 --- a/system/CLI/Commands.php +++ b/system/CLI/Commands.php @@ -52,12 +52,12 @@ public function __construct($logger = null) /** * Runs a command given * - * @return int|null Exit code + * @return int Exit code */ public function run(string $command, array $params) { if (! $this->verifyCommand($command, $this->commands)) { - return null; + return EXIT_ERROR; } // The file would have already been loaded during the