fix: Suppress psalm errors about deprecated execute method, we have to use it for now

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44151/head
Côme Chilliet 2 months ago
parent 75751d51de
commit 65bad47e7e
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A

@ -84,7 +84,7 @@ class Job extends Command {
$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);

@ -172,7 +172,7 @@ try {
$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();
@ -208,7 +208,7 @@ try {
$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);
}

Loading…
Cancel
Save