From ff16f95b57e8f7e455becf055ad73c8acebcdde0 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 14 Jun 2023 11:00:36 +0200 Subject: [PATCH] fix: execute return int for export command Signed-off-by: Max --- lib/Command/UserExport.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Command/UserExport.php b/lib/Command/UserExport.php index 4b6e91ec1..b3c35197e 100644 --- a/lib/Command/UserExport.php +++ b/lib/Command/UserExport.php @@ -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; } }