1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00

Fixed warning on newer symfony/process versions

This commit is contained in:
Pascal Krason
2019-04-11 20:20:23 +02:00
parent b06c64cc9a
commit 18cddd336a

View File

@@ -74,7 +74,11 @@ function runCommand($command, callable $onError = null)
{
$onError = $onError ?: function () {};
if (method_exists(Process::class, 'fromShellCommandline')) {
$process = Process::fromShellCommandline($command);
} else {
$process = new Process($command);
}
$processOutput = '';
$process->setTimeout(null)->run(function ($type, $line) use (&$processOutput) {