From d7c0b9cced2dff16e4e05507ac58cf8664a6aafc Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 26 Jun 2020 15:12:11 +0200 Subject: Also always return in app commands Signed-off-by: Joas Schilling --- apps/user_ldap/lib/Command/CreateEmptyConfig.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/user_ldap/lib/Command/CreateEmptyConfig.php') diff --git a/apps/user_ldap/lib/Command/CreateEmptyConfig.php b/apps/user_ldap/lib/Command/CreateEmptyConfig.php index 3f42020c1e9..4d88bf80c5e 100644 --- a/apps/user_ldap/lib/Command/CreateEmptyConfig.php +++ b/apps/user_ldap/lib/Command/CreateEmptyConfig.php @@ -58,7 +58,7 @@ class CreateEmptyConfig extends Command { ; } - protected function execute(InputInterface $input, OutputInterface $output) { + protected function execute(InputInterface $input, OutputInterface $output): int { $configPrefix = $this->helper->getNextServerConfigurationPrefix(); $configHolder = new Configuration($configPrefix); $configHolder->saveConfiguration(); @@ -68,5 +68,6 @@ class CreateEmptyConfig extends Command { $prose = 'Created new configuration with configID '; } $output->writeln($prose . "{$configPrefix}"); + return 0; } } -- cgit v1.2.3