From 29f6b4076f7bd64bc64f75a54eb56bb45b536a46 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 18 May 2023 15:12:02 +0545 Subject: [PATCH] Always return an int from Symfony Command execute method --- lib/Command/ResetAll.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Command/ResetAll.php b/lib/Command/ResetAll.php index 3af548f6cdf..3c4aa4ed582 100644 --- a/lib/Command/ResetAll.php +++ b/lib/Command/ResetAll.php @@ -65,9 +65,9 @@ public function configure() { * @param InputInterface $input * @param OutputInterface $output * - * @return int|null|void + * @return int */ - public function execute(InputInterface $input, OutputInterface $output) { + public function execute(InputInterface $input, OutputInterface $output): int { $output->writeln('Resetting firstrunwizard for all users'); $progress = new ProgressBar($output); $this->config->resetAllUsers(function ($user) use ($progress) { @@ -76,5 +76,6 @@ public function execute(InputInterface $input, OutputInterface $output) { $progress->finish(); $output->writeln(""); $output->writeln("Done"); + return 0; } }