Skip to content

Commit

Permalink
Fix bug in returning integer code in CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Feb 25, 2017
1 parent fc31b35 commit 9f9ba13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Console/ShellDispatcher.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9f9ba13

Please sign in to comment.