File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ protected function defaults(): self
8080 });
8181
8282 // @codeCoverageIgnoreStart
83- $ this ->onExit (function () {
84- exit (0 );
83+ $ this ->onExit (function ($ exitCode = 0 ) {
84+ exit ($ exitCode );
8585 });
8686 // @codeCoverageIgnoreEnd
8787
@@ -315,7 +315,7 @@ public function showHelp()
315315 ->showArgumentsHelp ($ this ->allArguments ())
316316 ->showOptionsHelp ($ this ->allOptions (), '' , 'Legend: <required> [optional] ' );
317317
318- return $ this ->emit ('_exit ' );
318+ return $ this ->emit ('_exit ' , 0 );
319319 }
320320
321321 /**
@@ -327,7 +327,7 @@ public function showVersion()
327327 {
328328 $ this ->writer ()->bold ($ this ->_version , true );
329329
330- return $ this ->emit ('_exit ' );
330+ return $ this ->emit ('_exit ' , 0 );
331331 }
332332
333333 /**
You can’t perform that action at this time.
0 commit comments