aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-03-12 11:23:35 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-03-12 11:23:35 +0100
commit65bad47e7ecc308cde017d267c914b25b6cf29d9 (patch)
treefd2575ee770de811486acc6a034d3ee981b3250e /cron.php
parent75751d51de9185982f43e3d72206f1741939dfda (diff)
downloadnextcloud-server-65bad47e7ecc308cde017d267c914b25b6cf29d9.tar.gz
nextcloud-server-65bad47e7ecc308cde017d267c914b25b6cf29d9.zip
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>
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index 3efe9faf744..117317c2fc4 100644
--- a/cron.php
+++ b/cron.php
@@ -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);
}