diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-02-08 14:46:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 14:46:20 +0100 |
commit | c58f8d6025e226404b80f9a5c742d6bca059e539 (patch) | |
tree | f3e85ad250677fdce080644d22540a41af888cb0 /tests | |
parent | f660032a9b26329f5cce650247df18d735519ddc (diff) | |
parent | b8e0a3dbdd61877050328c9ed5ad72922c330a97 (diff) | |
download | nextcloud-server-c58f8d6025e226404b80f9a5c742d6bca059e539.tar.gz nextcloud-server-c58f8d6025e226404b80f9a5c742d6bca059e539.zip |
Merge pull request #30945 from nextcloud/techdebt/noid/background-job-time-windows
Background job time windows
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/BackgroundJob/DummyJobList.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php index 97fc551d8f5..ec06203a477 100644 --- a/tests/lib/BackgroundJob/DummyJobList.php +++ b/tests/lib/BackgroundJob/DummyJobList.php @@ -75,9 +75,10 @@ class DummyJobList extends \OC\BackgroundJob\JobList { /** * get the next job in the list * + * @param bool $onlyTimeSensitive * @return IJob|null */ - public function getNext() { + public function getNext(bool $onlyTimeSensitive = true): ?IJob { if (count($this->jobs) > 0) { if ($this->last < (count($this->jobs) - 1)) { $i = $this->last + 1; |