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

fix(cron): Fix "Using $this when not in object context"
pull/42668/head
Joas Schilling 5 months ago committed by GitHub
commit b2aa27f3e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save