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
thrownew \LogicException('The ProcessHelper cannot be run as the Process component is not installed. Try running "compose require symfony/process".');
@@ -50,10 +48,6 @@ public function run(OutputInterface $output, $cmd, string $error = null, callabl
50
48
$cmd = [$cmd];
51
49
}
52
50
53
-
if (!\is_array($cmd)) {
54
-
thrownew \TypeError(sprintf('The "command" argument of "%s()" must be an array or a "%s" instance, "%s" given.', __METHOD__, Process::class, get_debug_type($cmd)));
55
-
}
56
-
57
51
if (\is_string($cmd[0] ?? null)) {
58
52
$process = newProcess($cmd);
59
53
$cmd = [];
@@ -96,13 +90,11 @@ public function run(OutputInterface $output, $cmd, string $error = null, callabl
96
90
* @param callable|null $callback A PHP callback to run whenever there is some
97
91
* output available on STDOUT or STDERR
98
92
*
99
-
* @return Process The process that ran
100
-
*
101
93
* @throws ProcessFailedException
102
94
*
103
95
* @see run()
104
96
*/
105
-
publicfunctionmustRun(OutputInterface$output, $cmd, string$error = null, callable$callback = null): Process
97
+
publicfunctionmustRun(OutputInterface$output, string|Process$cmd, string$error = null, callable$callback = null): Process
0 commit comments