aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-01-10 15:51:22 +0100
committerJoas Schilling <coding@schilljs.com>2024-01-10 15:51:22 +0100
commiteeb0007cd319418109bdcee7a0fc4853840016fb (patch)
tree482dc4f1985dbeabca6803d489f061f3012a5824 /cron.php
parent62506a4e8de97dc9909d83029f47e78afce99371 (diff)
downloadnextcloud-server-eeb0007cd319418109bdcee7a0fc4853840016fb.tar.gz
nextcloud-server-eeb0007cd319418109bdcee7a0fc4853840016fb.zip
fix(cron): Fix "Using $this when not in object context"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php2
1 files changed, 1 insertions, 1 deletions
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();