diff --git a/src/Command.php b/src/Command.php index 7fe4380..c552724 100644 --- a/src/Command.php +++ b/src/Command.php @@ -97,11 +97,6 @@ class Command */ protected $_args = array(); - /** - * @var string the full command string to execute - */ - protected $_execCommand; - /** * @var string the stdout output */ @@ -232,16 +227,14 @@ public function getCommand() */ public function getExecCommand() { - if ($this->_execCommand===null) { - $command = $this->getCommand(); - if (!$command) { - $this->_error = 'Could not locate any executable command'; - return false; - } - $args = $this->getArgs(); - $this->_execCommand = $args ? $command.' '.$args : $command; + $command = $this->getCommand(); + if (!$command) { + $this->_error = 'Could not locate any executable command'; + return false; } - return $this->_execCommand; + + $args = $this->getArgs(); + return $args ? $command.' '.$args : $command; } /**