Merge pull request #23701 from nextcloud/fix/fed/bg_signatures

Make sure the function signatures of the backgroundjob match
This commit is contained in:
Morris Jobke 2020-10-26 23:01:23 +01:00 committed by GitHub
commit a150f2a198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class GetSharedSecret extends Job {
* @param JobList $jobList * @param JobList $jobList
* @param ILogger|null $logger * @param ILogger|null $logger
*/ */
public function execute($jobList, ILogger $logger = null) { public function execute(IJobList $jobList, ILogger $logger = null) {
$target = $this->argument['url']; $target = $this->argument['url'];
// only execute if target is still in the list of trusted domains // only execute if target is still in the list of trusted domains
if ($this->trustedServers->isTrustedServer($target)) { if ($this->trustedServers->isTrustedServer($target)) {

View File

@ -117,7 +117,7 @@ class RequestSharedSecret extends Job {
* @param JobList $jobList * @param JobList $jobList
* @param ILogger|null $logger * @param ILogger|null $logger
*/ */
public function execute($jobList, ILogger $logger = null) { public function execute(IJobList $jobList, ILogger $logger = null) {
$target = $this->argument['url']; $target = $this->argument['url'];
// only execute if target is still in the list of trusted domains // only execute if target is still in the list of trusted domains
if ($this->trustedServers->isTrustedServer($target)) { if ($this->trustedServers->isTrustedServer($target)) {