From 0277829be8b383546505008ee6c8c0146ea44da6 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 26 Oct 2020 21:40:55 +0100 Subject: [PATCH] Make sure the function signatures of the backgroundjob match Else PHP says no Signed-off-by: Roeland Jago Douma --- apps/federation/lib/BackgroundJob/GetSharedSecret.php | 2 +- apps/federation/lib/BackgroundJob/RequestSharedSecret.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/federation/lib/BackgroundJob/GetSharedSecret.php b/apps/federation/lib/BackgroundJob/GetSharedSecret.php index c86c7f1d75..669de02ec5 100644 --- a/apps/federation/lib/BackgroundJob/GetSharedSecret.php +++ b/apps/federation/lib/BackgroundJob/GetSharedSecret.php @@ -118,7 +118,7 @@ class GetSharedSecret extends Job { * @param JobList $jobList * @param ILogger|null $logger */ - public function execute($jobList, ILogger $logger = null) { + public function execute(IJobList $jobList, ILogger $logger = null) { $target = $this->argument['url']; // only execute if target is still in the list of trusted domains if ($this->trustedServers->isTrustedServer($target)) { diff --git a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php index 990f5025bf..f577372bba 100644 --- a/apps/federation/lib/BackgroundJob/RequestSharedSecret.php +++ b/apps/federation/lib/BackgroundJob/RequestSharedSecret.php @@ -117,7 +117,7 @@ class RequestSharedSecret extends Job { * @param JobList $jobList * @param ILogger|null $logger */ - public function execute($jobList, ILogger $logger = null) { + public function execute(IJobList $jobList, ILogger $logger = null) { $target = $this->argument['url']; // only execute if target is still in the list of trusted domains if ($this->trustedServers->isTrustedServer($target)) {