Skip to content

Commit

Permalink
Add native return type to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Aug 26, 2021
1 parent 32c4d16 commit af0e8c2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
5 changes: 1 addition & 4 deletions Command/CreateDatabaseDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ protected function configure()
);
}

/**
* {@inheritDoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$connectionName = $input->getOption('connection');
if (empty($connectionName)) {
Expand Down
5 changes: 1 addition & 4 deletions Command/DropDatabaseDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ protected function configure()
);
}

/**
* {@inheritDoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$connectionName = $input->getOption('connection');
if (empty($connectionName)) {
Expand Down
5 changes: 1 addition & 4 deletions Command/ImportMappingDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ protected function configure()
);
}

/**
* {@inheritDoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$type = $input->getArgument('mapping-type') ?: 'xml';
if ($type === 'yaml') {
Expand Down
5 changes: 1 addition & 4 deletions Command/Proxy/ImportDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ protected function configure()
->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command');
}

/**
* {@inheritDoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
trigger_deprecation(
'doctrine/doctrine-bundle',
Expand Down
5 changes: 1 addition & 4 deletions Command/Proxy/RunSqlDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ protected function configure()
$this->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'The connection to use for this command');
}

/**
* {@inheritDoc}
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
trigger_deprecation(
'doctrine/doctrine-bundle',
Expand Down

0 comments on commit af0e8c2

Please sign in to comment.