Skip to content

Commit 6c42bae

Browse files
authored
type cast for maxAgeSeconds in cleanup command
Also this command argument needs am integer cast Signed-off-by: Daniel Stränger <[email protected]>
1 parent 05eb4cb commit 6c42bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/Command/TaskProcessing/Cleanup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function configure() {
4646
}
4747

4848
protected function execute(InputInterface $input, OutputInterface $output): int {
49-
$maxAgeSeconds = $input->getArgument('maxAgeSeconds') ?? Manager::MAX_TASK_AGE_SECONDS;
49+
$maxAgeSeconds = (int) $input->getArgument('maxAgeSeconds') ?? Manager::MAX_TASK_AGE_SECONDS;
5050
$output->writeln('<comment>Cleanup up tasks older than ' . $maxAgeSeconds . ' seconds and the related output files</comment>');
5151

5252
$taskIdsToCleanup = [];

0 commit comments

Comments
 (0)