Skip to content

Commit 8b93068

Browse files
committed
Fixed psalm
1 parent a8739d2 commit 8b93068

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Command/PingStaleIssuesCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
6161
return 1;
6262
}
6363

64-
$notUpdatedAfter = new \DateTimeImmutable((string) $input->getOption('not-updated-for'));
64+
/** @var string $timeString */
65+
$timeString = $input->getOption('not-updated-for');
66+
$notUpdatedAfter = new \DateTimeImmutable($timeString);
6567
$issues = $this->issueApi->findStaleIssues($repository, $notUpdatedAfter);
6668

6769
if ($input->getOption('dry-run')) {

0 commit comments

Comments
 (0)