From a11764658e871eee8528feda204cdc2ad7952c09 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 15 Sep 2024 01:50:59 +0200 Subject: [PATCH] refactor(cron): Remove deprecated ILogger related methods Signed-off-by: Ferdinand Thiessen --- cron.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cron.php b/cron.php index ed3e72b3d886f..96c1cee38ec11 100644 --- a/cron.php +++ b/cron.php @@ -158,8 +158,7 @@ $memoryBefore = memory_get_usage(); $memoryPeakBefore = memory_get_peak_usage(); - /** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */ - $job->execute($jobList); + $job->start($jobList); $timeAfter = time(); $memoryAfter = memory_get_usage(); @@ -212,8 +211,7 @@ $job = $jobList->getNext(); if ($job != null) { $logger->debug('WebCron call has selected job with ID ' . strval($job->getId()), ['app' => 'cron']); - /** @psalm-suppress DeprecatedMethod Calling execute until it is removed, then will switch to start */ - $job->execute($jobList); + $job->start($jobList); $jobList->setLastJob($job); } OC_JSON::success();