Skip to content

Commit

Permalink
fix: Suppress psalm errors about deprecated execute method, we have t…
Browse files Browse the repository at this point in the history
…o use it for now

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Mar 12, 2024
1 parent 75751d5 commit 65bad47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/Command/Background/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('<error>Something went wrong when trying to retrieve Job with ID ' . $jobId . ' from database</error>');
return 1;
}
/** Calling execute until it is removed, then will switch to start */
/** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */
$job->execute($this->jobList);
$job = $this->jobList->getById($jobId);

Expand Down
4 changes: 2 additions & 2 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
$memoryBefore = memory_get_usage();
$memoryPeakBefore = memory_get_peak_usage();

/** Calling execute until it is removed, then will switch to start */
/** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */
$job->execute($jobList);

$memoryAfter = memory_get_usage();
Expand Down Expand Up @@ -208,7 +208,7 @@
$job = $jobList->getNext();
if ($job != null) {
$logger->debug('WebCron call has selected job with ID ' . strval($job->getId()), ['app' => 'cron']);
/** Calling execute until it is removed, then will switch to start */
/** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */
$job->execute($jobList);
$jobList->setLastJob($job);
}
Expand Down

0 comments on commit 65bad47

Please sign in to comment.