Skip to content

Commit

Permalink
Merge pull request #200 from francoisfreitag/input-def
Browse files Browse the repository at this point in the history
Define Console type hints
  • Loading branch information
gordalina authored Jan 20, 2022
2 parents 2b9af0e + e9812a4 commit 7e50a5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use SelfUpdate\SelfUpdateCommand;
use Symfony\Component\Console\Application as BaseApplication;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -59,7 +60,7 @@ public function __construct(Config $config)
/**
* {@inheritdoc}
*/
protected function getDefaultCommands()
protected function getDefaultCommands(): array
{
$commands = parent::getDefaultCommands();
$commands[] = new SelfUpdateCommand(
Expand Down Expand Up @@ -102,7 +103,7 @@ protected function getDefaultCommands()
/**
* {@inheritDoc}
*/
protected function getDefaultInputDefinition()
protected function getDefaultInputDefinition(): InputDefinition
{
$definition = parent::getDefaultInputDefinition();
$definition->addOption(new InputOption('--fcgi', null, InputOption::VALUE_OPTIONAL, 'If specified, used as a connection string to FastCGI server.'));
Expand Down

0 comments on commit 7e50a5c

Please sign in to comment.