aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-01-10 16:42:49 +0100
committerGitHub <noreply@github.com>2024-01-10 16:42:49 +0100
commitb2aa27f3e38ba156c21e345cc13dbcd21b1c5e1b (patch)
tree482dc4f1985dbeabca6803d489f061f3012a5824
parent62506a4e8de97dc9909d83029f47e78afce99371 (diff)
parenteeb0007cd319418109bdcee7a0fc4853840016fb (diff)
downloadnextcloud-server-b2aa27f3e38ba156c21e345cc13dbcd21b1c5e1b.tar.gz
nextcloud-server-b2aa27f3e38ba156c21e345cc13dbcd21b1c5e1b.zip
Merge pull request #42681 from nextcloud/bugfix/noid/fix-cron.php
fix(cron): Fix "Using $this when not in object context"
-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();