From 7c5473b7e08ec0297c94c88248b85c2e1793ad42 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 4 Mar 2015 20:10:02 +0100 Subject: [PATCH 1/1] fix warning --- src/pharext/Installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pharext/Installer.php b/src/pharext/Installer.php index 0e7cce4..ccbc385 100644 --- a/src/pharext/Installer.php +++ b/src/pharext/Installer.php @@ -120,7 +120,7 @@ class Installer implements Command private function exec($name, $command, $sudo = false) { $this->info("Running %s ...%s", $this->args->verbose ? $command : $name, $this->args->verbose ? "\n" : " "); if ($sudo && isset($this->args->sudo)) { - if ($proc = proc_open(sprintf($this->args->sudo, $command)." 2>&1", [STDIN,STDOUT,STDERR], $pipes)) { + if (($proc = proc_open(sprintf($this->args->sudo, $command)." 2>&1", [STDIN,STDOUT,STDERR], $pipes))) { $retval = proc_close($proc); } else { $retval = -1; -- 2.30.2