From c5b9895b657dd40f385ade0dc4d50f7e5e048afe Mon Sep 17 00:00:00 2001 From: asier-vega Date: Fri, 2 Oct 2020 12:47:37 +0200 Subject: [PATCH] Fix Process class construct param error --- src/LIN3S/CS/Git/Git.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LIN3S/CS/Git/Git.php b/src/LIN3S/CS/Git/Git.php index eec530b..a3ccd24 100644 --- a/src/LIN3S/CS/Git/Git.php +++ b/src/LIN3S/CS/Git/Git.php @@ -43,7 +43,7 @@ public static function addFiles(array $files, $rootDirectory = null) if (false === file_exists($file)) { continue; } - $process = new Process(sprintf('git add %s', $file), $rootDirectory); + $process = new Process([sprintf('git add %s', $file)], $rootDirectory); $process->run(); }