Skip to content

Commit

Permalink
Merge pull request #4 from thhan/master
Browse files Browse the repository at this point in the history
update CommandHelper
  • Loading branch information
bartrail committed Mar 6, 2017
2 parents ef8af13 + 878ee10 commit 8f52d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Helper/CommandHelper.php
Expand Up @@ -389,7 +389,7 @@ public static function setTableColor(Table $table, $style = '<fg=yellow>%s</>')
* @param bool $write
* @throws MissingParameterException
*/
public static function executeRemoteCommand($cmd, array $config, OutputInterface $output, $write = true)
public static function executeRemoteCommand($cmd, array $config, OutputInterface $output = null, $write = true)
{
if (empty($config["user"]) === true) {
throw new MissingParameterException(
Expand Down Expand Up @@ -420,6 +420,6 @@ public static function executeRemoteCommand($cmd, array $config, OutputInterface
addslashes($cmd)
);

self::executeCommand($cmd, $output, $write);
return self::executeCommand($cmd, $output, $write);
}
}

0 comments on commit 8f52d75

Please sign in to comment.