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

Fixes deprecated Process argument passed as string

Passing a command as string is deprecated since Symfony 4.2.
This commit is contained in:
Pascal Krason
2019-04-08 16:19:39 +02:00
committed by GitHub
parent 1e3e37179b
commit 737be28bf5

View File

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