From 018fdc697e3ef6448c1ba5ffc6a9b6a802096593 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 6 Sep 2021 16:32:43 +0200 Subject: [PATCH] Fix RemoveAllCommand return type The command should always return an integer as exit code. The called method does not return anything, resulting in null to be returned. --- Classes/Command/RemoveAllCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/Command/RemoveAllCommand.php b/Classes/Command/RemoveAllCommand.php index 0f87879..c338f45 100644 --- a/Classes/Command/RemoveAllCommand.php +++ b/Classes/Command/RemoveAllCommand.php @@ -22,8 +22,10 @@ class RemoveAllCommand extends Command { Bootstrap::initializeBackendAuthentication(); - return GeneralUtility::makeInstance(ObjectManager::class) + GeneralUtility::makeInstance(ObjectManager::class) ->get(CleanupService::class) ->deleteAllData(); + + return 0; } }