Skip to content

Commit

Permalink
Backport #977
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Sep 6, 2020
1 parent 63fec5b commit 3df1c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/src/Robo/Plugin/Commands/ExampleCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ public function tryExec($options = ['printed' => true, 'error' => false])
*
* @param ConsoleIO $io
*/
public function tryCaptureExec(ConsoleIO $io)
public function tryCaptureExec()
{
$result = $this->taskExec('echo')->args(['one', 'two', 'three'])->printOutput(false)->run();

$io->writeln('Captured output from exec >>> ' . $result->getOutputData());
$this->say('Captured output from exec >>> ' . $result->getOutputData());
}

/**
Expand Down

0 comments on commit 3df1c25

Please sign in to comment.