\OCP\BackgroundJob\Job::run is neither public nor static

Ref https://help.nextcloud.com/t/cannot-develop-own-backgroundtask-when-using-nextcloud-developer-documentation/83411

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2020-06-19 10:51:08 +02:00 committed by backportbot[bot]
parent 4eca34a809
commit 9e81b395ed

View File

@ -45,7 +45,7 @@ your job class of choice.
parent::setInterval(3600);
}
public static function run($arguments) {
protected function run($arguments) {
$this->myService->doCron($arguments['uid']);
}