From 2b33583bd733e73552a5e22ea2f9442746990bad 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 090e2f072..3b2948270 100644 --- a/lib/Command/UserExport.php +++ b/lib/Command/UserExport.php @@ -79,12 +79,12 @@ protected function configure() { /** * @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 @@ protected function execute(InputInterface $input, OutputInterface $output) { } } $output->writeln(json_encode($data, JSON_PRETTY_PRINT)); + return 0; } }