Make sure the function signatures of the backgroundjob match
Else PHP says no Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
b0eec52c85
commit
0277829be8
|
@ -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)) {
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue