From: Michael Wallner Date: Wed, 4 Mar 2015 19:10:02 +0000 (+0100) Subject: fix warning X-Git-Tag: v1.0.3~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=7c5473b7e08ec0297c94c88248b85c2e1793ad42;p=pharext%2Fpharext fix warning --- 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;