]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(cron): Fix "Using $this when not in object context" 42681/head
authorJoas Schilling <coding@schilljs.com>
Wed, 10 Jan 2024 14:51:22 +0000 (15:51 +0100)
committerJoas Schilling <coding@schilljs.com>
Wed, 10 Jan 2024 14:51:22 +0000 (15:51 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
cron.php

index a6716a68714dfde7bba448181fb867c4e14469ae..9a3b6297d806f4581b1f122f6a83459d05eae325 100644 (file)
--- 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();