From: Joas Schilling Date: Wed, 10 Jan 2024 14:51:22 +0000 (+0100) Subject: fix(cron): Fix "Using $this when not in object context" X-Git-Tag: v29.0.0beta1~526^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F42681%2Fhead;p=nextcloud-server.git fix(cron): Fix "Using $this when not in object context" Signed-off-by: Joas Schilling --- diff --git a/cron.php b/cron.php index a6716a68714..9a3b6297d80 100644 --- a/cron.php +++ b/cron.php @@ -148,7 +148,7 @@ try { break; } - $jobDetails = get_class($this) . ' (id: ' . $this->getId() . ', arguments: ' . json_encode($this->getArgument()) . ')'; + $jobDetails = get_class($job) . ' (id: ' . $job->getId() . ', arguments: ' . json_encode($job->getArgument()) . ')'; $logger->debug('CLI cron call has selected job ' . $jobDetails, ['app' => 'cron']); $memoryBefore = memory_get_usage();