Skip to content

Commit b2aa27f

Browse files
Merge pull request #42681 from nextcloud/bugfix/noid/fix-cron.php
fix(cron): Fix "Using $this when not in object context"
2 parents 62506a4 + eeb0007 commit b2aa27f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cron.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
break;
149149
}
150150

151-
$jobDetails = get_class($this) . ' (id: ' . $this->getId() . ', arguments: ' . json_encode($this->getArgument()) . ')';
151+
$jobDetails = get_class($job) . ' (id: ' . $job->getId() . ', arguments: ' . json_encode($job->getArgument()) . ')';
152152
$logger->debug('CLI cron call has selected job ' . $jobDetails, ['app' => 'cron']);
153153

154154
$memoryBefore = memory_get_usage();

0 commit comments

Comments
 (0)