From cf721041ac4bdc52923d0eb644cd334a5c3a2c1e Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Fri, 19 Jul 2024 16:45:16 +0200 Subject: [PATCH] [Rector] Applied all Symfony 5.x rectors to the production codebase Applied rules: * AddReturnTypeDeclarationRector * CommandConstantReturnCodeRector --- src/bundle/Command/MigrateLegacyMatrixCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bundle/Command/MigrateLegacyMatrixCommand.php b/src/bundle/Command/MigrateLegacyMatrixCommand.php index 64058ee..04268bd 100644 --- a/src/bundle/Command/MigrateLegacyMatrixCommand.php +++ b/src/bundle/Command/MigrateLegacyMatrixCommand.php @@ -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); @@ -78,7 +78,7 @@ public function execute(InputInterface $input, OutputInterface $output) if ($answer !== self::CONFIRMATION_ANSWER) { $io->comment('Canceled.'); - return 1; + return Command::FAILURE; } } @@ -200,7 +200,7 @@ public function execute(InputInterface $input, OutputInterface $output) $io->success('Done.'); - return 0; + return Command::SUCCESS; } /**