Merge pull request #4809 from nextcloud/fix/return-int-from-commands

This commit is contained in:
Julius Härtl
2023-06-14 12:29:17 +02:00
committed by GitHub

View File

@@ -79,12 +79,12 @@ class UserExport extends Command {
/**
* @param InputInterface $input
* @param OutputInterface $output
* @return void
* @return int
* @throws DoesNotExistException
* @throws MultipleObjectsReturnedException
* @throws \ReflectionException
*/
protected function execute(InputInterface $input, OutputInterface $output) {
protected function execute(InputInterface $input, OutputInterface $output): int {
$userId = $input->getArgument('user-id');
$this->boardService->setUserId($userId);
@@ -109,5 +109,6 @@ class UserExport extends Command {
}
}
$output->writeln(json_encode($data, JSON_PRETTY_PRINT));
return 0;
}
}