Skip to content

Commit

Permalink
Merge pull request #66 from babeuloula/use-array-input
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli authored Sep 6, 2022
2 parents c35cd1d + 9210c84 commit 3ff92aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Silly\Command\Command;
use Silly\Command\ExpressionParser;
use Symfony\Component\Console\Application as SymfonyApplication;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\Input;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\StringInput;
Expand Down Expand Up @@ -168,7 +169,7 @@ public function runCommand($command, OutputInterface $output = null)

$command = $this->find($this->getCommandName($input));

return $command->run($input, $output ?: new NullOutput());
return $command->run(new ArrayInput($input->getArguments()), $output ?: new NullOutput());
}

/**
Expand Down

0 comments on commit 3ff92aa

Please sign in to comment.