diff --git a/core/Command/TaskProcessing/Cleanup.php b/core/Command/TaskProcessing/Cleanup.php index 7a1b1bea5a73a..0ae7cbfae3043 100644 --- a/core/Command/TaskProcessing/Cleanup.php +++ b/core/Command/TaskProcessing/Cleanup.php @@ -46,7 +46,7 @@ protected function configure() { } protected function execute(InputInterface $input, OutputInterface $output): int { - $maxAgeSeconds = $input->getArgument('maxAgeSeconds') ?? Manager::MAX_TASK_AGE_SECONDS; + $maxAgeSeconds = (int) $input->getArgument('maxAgeSeconds') ?? Manager::MAX_TASK_AGE_SECONDS; $output->writeln('Cleanup up tasks older than ' . $maxAgeSeconds . ' seconds and the related output files'); $taskIdsToCleanup = [];