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