Skip to content

Commit

Permalink
Allow console 5.4 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Aug 21, 2022
1 parent dd7fa6f commit 1911d1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -13,7 +13,7 @@
"changelog-fetcher"
],
"require": {
"symfony/console": "^3.4||^4",
"symfony/console": "^3.4||^4||^5.4",
"violinist-dev/process-factory": "^2.0",
"symfony/dependency-injection": "^3.4||^4",
"violinist-dev/composer-lock-data": "^1.1",
Expand Down
5 changes: 3 additions & 2 deletions src/FetchCommand.php
Expand Up @@ -35,10 +35,10 @@ public function configure()
/**
* @param InputInterface $input
* @param OutputInterface $output
* @return int|null|void
* @return int
* @throws \Exception
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output) : int
{
if (!$input->getOption('package') || !$input->getOption('version_from') || !$input->getOption('version_to')) {
throw new \InvalidArgumentException('Please supply options for package, version_from and version_to');
Expand Down Expand Up @@ -66,5 +66,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln(sprintf("%s: %s (%s)", $line->hash, $line->message, $line->link));
}
}
return 0;
}
}

0 comments on commit 1911d1f

Please sign in to comment.