diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-10-26 21:40:55 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-10-26 21:40:55 +0100 |
commit | 1f2ff18439ddc4067d97613b20c9081cecf8424f (patch) | |
tree | 25ba03ca2898dfa700d918e71526938db73a194d /apps/federation/lib/BackgroundJob | |
parent | 7570daf123169e0a0b17a01b3d7b762e7b1500d4 (diff) | |
download | nextcloud-server-1f2ff18439ddc4067d97613b20c9081cecf8424f.tar.gz nextcloud-server-1f2ff18439ddc4067d97613b20c9081cecf8424f.zip |
Make sure the function signatures of the backgroundjob match
Else PHP says no
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/federation/lib/BackgroundJob')
-rw-r--r-- | apps/federation/lib/BackgroundJob/GetSharedSecret.php | 2 | ||||
-rw-r--r-- | 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 c86c7f1d75a..669de02ec5c 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 990f5025bf5..f577372bbae 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)) { |