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

Re-write Process version comment

This commit is contained in:
Matt Stauffer
2019-04-11 15:46:16 -04:00
parent 9705801971
commit dc0e14a3ea

View File

@@ -74,8 +74,9 @@ function runCommand($command, callable $onError = null)
{
$onError = $onError ?: function () {};
// Symfony 4.x throws a warning when the command string is passed to the constructor
// But the version constraint allows older versions, too
// Symfony's 4.x Process component has deprecated passing a command string
// to the constructor, but older versions (which Valet's Composer
// constraints allow) don't have the fromShellCommandLine method.
// For more information, see: https://github.com/laravel/valet/pull/761
if (method_exists(Process::class, 'fromShellCommandline')) {
$process = Process::fromShellCommandline($command);