Skip to content

Commit

Permalink
[Rector] Applied all Symfony 5.x rectors to the production codebase
Browse files Browse the repository at this point in the history
Applied rules:
 * AddReturnTypeDeclarationRector
 * CommandConstantReturnCodeRector
  • Loading branch information
alongosz committed Aug 6, 2024
1 parent b101f64 commit cf72104
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bundle/Command/MigrateLegacyMatrixCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function configure()
/**
* {@inheritdoc}
*/
public function execute(InputInterface $input, OutputInterface $output)
public function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);

Expand All @@ -78,7 +78,7 @@ public function execute(InputInterface $input, OutputInterface $output)
if ($answer !== self::CONFIRMATION_ANSWER) {
$io->comment('Canceled.');

return 1;
return Command::FAILURE;
}
}

Expand Down Expand Up @@ -200,7 +200,7 @@ public function execute(InputInterface $input, OutputInterface $output)

$io->success('Done.');

return 0;
return Command::SUCCESS;
}

/**
Expand Down

0 comments on commit cf72104

Please sign in to comment.