Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/Command/TaskProcessing/Cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}

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;

Check failure on line 49 in core/Command/TaskProcessing/Cleanup.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

TypeDoesNotContainNull

core/Command/TaskProcessing/Cleanup.php:49:66: TypeDoesNotContainNull: Cannot resolve types for $<tmp coalesce var>1462 - int does not contain null (see https://psalm.dev/090)

Check failure on line 49 in core/Command/TaskProcessing/Cleanup.php

View workflow job for this annotation

GitHub Actions / static-code-analysis

RedundantCondition

core/Command/TaskProcessing/Cleanup.php:49:20: RedundantCondition: Type int for $<tmp coalesce var>1462 is never null (see https://psalm.dev/122)
$output->writeln('<comment>Cleanup up tasks older than ' . $maxAgeSeconds . ' seconds and the related output files</comment>');

$taskIdsToCleanup = [];
Expand Down
Loading