Skip to content

Commit

Permalink
ODOS-604 return type of command's execute method should be INT
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanteugels authored May 24, 2024
1 parent ad27f27 commit 0b10bee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Console/Command/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected function configure(): void
* @param InputInterface $input
* @param OutputInterface $output
*/
protected function execute(InputInterface $input, OutputInterface $output): void
protected function execute(InputInterface $input, OutputInterface $output): int
{
try {
$csvFile = $input->getArgument(self::ARGUMENT_CSV_FILE);
Expand Down Expand Up @@ -85,5 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
} catch (\Exception $e) {
$output->writeln('<error>' . $e->getMessage() . '</error>');
}

return 0;
}
}

0 comments on commit 0b10bee

Please sign in to comment.