From ca7bd6459bc58a62eb9e306fce5117ae9886486f Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Mon, 23 Jan 2012 19:41:44 +0100 Subject: [PATCH] fix issue #251 - Using $this not in object context --- src/Composer/Repository/Vcs/HgDriver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/HgDriver.php b/src/Composer/Repository/Vcs/HgDriver.php index 2b8c4351c..61a80c1c4 100644 --- a/src/Composer/Repository/Vcs/HgDriver.php +++ b/src/Composer/Repository/Vcs/HgDriver.php @@ -185,7 +185,8 @@ class HgDriver extends VcsDriver implements VcsDriverInterface return false; } - $exit = $this->process->execute(sprintf('cd %s && hg identify %s', escapeshellarg(sys_get_temp_dir()), escapeshellarg($url)), $ignored); + $processExecutor = new ProcessExecutor(); + $exit = $processExecutor->process->execute(sprintf('cd %s && hg identify %s', escapeshellarg(sys_get_temp_dir()), escapeshellarg($url)), $ignored); return $exit === 0; } }