Merge pull request #42681 from nextcloud/bugfix/noid/fix-cron.php

fix(cron): Fix "Using $this when not in object context"
This commit is contained in:
Joas Schilling 2024-01-10 16:42:49 +01:00 committed by GitHub
commit b2aa27f3e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();