diff --git a/src/Console/ShellDispatcher.php b/src/Console/ShellDispatcher.php index 833b4b4d075..ff58f8e0dda 100644 --- a/src/Console/ShellDispatcher.php +++ b/src/Console/ShellDispatcher.php @@ -186,6 +186,9 @@ public function dispatch($extra = []) if ($result === null || $result === true) { return Shell::CODE_SUCCESS; } + if (is_int($result)) { + return $result; + } return Shell::CODE_ERROR; }