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 committed May 24, 2024
1 parent 0b10bee commit 5d69fa7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Console/Command/ImportFull.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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 @@ -81,5 +81,7 @@ protected function execute(InputInterface $input, OutputInterface $output): void
} catch (\Exception $e) {
$output->writeln('<error>' . $e->getMessage() . '</error>');
}

return 0;
}
}

0 comments on commit 5d69fa7

Please sign in to comment.