Skip to content

Commit

Permalink
Merge pull request #453 from jakzal/symfony-6
Browse files Browse the repository at this point in the history
Allow Symfony 6.1
  • Loading branch information
jakzal authored Aug 25, 2022
2 parents ba41fe2 + 10a665b commit e369c06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "project",
"require": {
"php": "^7.4.7 || ~8.0.0 || ~8.1.0",
"symfony/console": "^4.4 || ^5.3",
"symfony/console": "^4.4 || ^5.4 || ^6.1",
"psr/container": "^1.0"
},
"require-dev": {
Expand Down
3 changes: 2 additions & 1 deletion src/Cli/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Symfony\Component\Console\Application as CliApplication;
use Symfony\Component\Console\CommandLoader\CommandLoaderInterface;
use Symfony\Component\Console\CommandLoader\ContainerCommandLoader;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -34,7 +35,7 @@ public function doRun(InputInterface $input, OutputInterface $output)
return parent::doRun($input, $output);
}

protected function getDefaultInputDefinition()
protected function getDefaultInputDefinition(): InputDefinition
{
$definition = parent::getDefaultInputDefinition();
$definition->addOption(new InputOption('tools', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Path(s) to the list of tools. Can also be set with TOOLBOX_JSON environment variable.', $this->toolsJsonDefault()));
Expand Down

0 comments on commit e369c06

Please sign in to comment.