Skip to content

Commit 842d2bc

Browse files
committed
[Rector] Applied all Symfony 5.x rectors to the production codebase
Applied rules: * AddReturnTypeDeclarationRector * CommandConstantReturnCodeRector
1 parent bf7b3a5 commit 842d2bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bundle/Command/MigrateLegacyMatrixCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function configure()
6767
/**
6868
* {@inheritdoc}
6969
*/
70-
public function execute(InputInterface $input, OutputInterface $output)
70+
public function execute(InputInterface $input, OutputInterface $output): int
7171
{
7272
$io = new SymfonyStyle($input, $output);
7373

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

81-
return 1;
81+
return Command::FAILURE;
8282
}
8383
}
8484

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

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

203-
return 0;
203+
return Command::SUCCESS;
204204
}
205205

206206
/**

0 commit comments

Comments
 (0)