You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return$this->run($command, function ($code, $output) use ($onError) {
78
82
if ($onError) {
79
83
$onError($code, $output);
@@ -86,8 +90,8 @@ public function runOrExit($command, ?callable $onError = null, $realTimeOutput =
86
90
/**
87
91
* Run the given command.
88
92
*
89
-
* @param string $command
90
-
* @param callable $onError
93
+
* @param string $command
94
+
* @param callable|null $onError
91
95
* @param boolean $realTimeOutput Set to `true` to get the output in real time as the command is running. Default: `false`
92
96
* @return ProcessOutput|void Returns a ProcessOutput only if the real time is `false`, otherwise it doesn't return anything (void) as it's echoing out in real time.
0 commit comments