mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #24324 from nextcloud/td/psalm/backgroundjob_job
Fix the OCP\BackgroundJob\Job to make it compatible with its interface
This commit is contained in:
commit
d4fd61b7c6
1 changed files with 3 additions and 3 deletions
|
|
@ -68,7 +68,7 @@ abstract class Job implements IJob {
|
|||
*
|
||||
* @since 15.0.0
|
||||
*/
|
||||
public function execute($jobList, ILogger $logger = null) {
|
||||
public function execute(IJobList $jobList, ILogger $logger = null) {
|
||||
$jobList->setLastRun($this);
|
||||
if ($logger === null) {
|
||||
$logger = \OC::$server->getLogger();
|
||||
|
|
@ -95,14 +95,14 @@ abstract class Job implements IJob {
|
|||
/**
|
||||
* @since 15.0.0
|
||||
*/
|
||||
final public function setId($id) {
|
||||
final public function setId(int $id) {
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 15.0.0
|
||||
*/
|
||||
final public function setLastRun($lastRun) {
|
||||
final public function setLastRun(int $lastRun) {
|
||||
$this->lastRun = $lastRun;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue