fix warning
authorMichael Wallner <mike@php.net>
Wed, 4 Mar 2015 19:10:02 +0000 (20:10 +0100)
committerMichael Wallner <mike@php.net>
Wed, 4 Mar 2015 19:10:02 +0000 (20:10 +0100)
src/pharext/Installer.php

index 0e7cce461abeedb3e1d7c7b8acd1f0a390bf0ef1..ccbc385213cf2300a7d7e13e46defb0b98d8c28f 100644 (file)
@@ -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;