From 9bb15e9a892305e771d4326a3d9df60e8f0bc97b Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 19 Jan 2026 10:31:39 +0100 Subject: [PATCH] fix(TaskProcessing): Fix occ commands to cast strings to integer fixes #57111 Signed-off-by: Marcel Klehr --- core/Command/TaskProcessing/Statistics.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/Command/TaskProcessing/Statistics.php b/core/Command/TaskProcessing/Statistics.php index a3dc9ee0254..dfa383dda51 100644 --- a/core/Command/TaskProcessing/Statistics.php +++ b/core/Command/TaskProcessing/Statistics.php @@ -78,9 +78,9 @@ class Statistics extends Base { $type = $input->getOption('type'); $appId = $input->getOption('appId'); $customId = $input->getOption('customId'); - $status = $input->getOption('status'); - $scheduledAfter = $input->getOption('scheduledAfter'); - $endedBefore = $input->getOption('endedBefore'); + $status = $input->getOption('status') !== null ? (int)$input->getOption('status') : null; + $scheduledAfter = $input->getOption('scheduledAfter') !== null ? (int)$input->getOption('scheduledAfter') : null; + $endedBefore = $input->getOption('endedBefore') !== null ? (int)$input->getOption('endedBefore') : null; $tasks = $this->taskProcessingManager->getTasks($userIdFilter, $type, $appId, $customId, $status, $scheduledAfter, $endedBefore);