Skip to content

Commit eeb0007

Browse files
committed
fix(cron): Fix "Using $this when not in object context"
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 62506a4 commit eeb0007

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)