Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-07-12 15:27:02 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-07-12 15:27:02 +0300
commit0386f4270befeff97bd128e17bfae676a74aacf3 (patch)
tree7e2f2a55752c948613bdb34ddef2e90a1c6a8716 /tests
parent2e921f8b3df2f53bd780b95303b74ff2c7cc444f (diff)
Fix DummyJobList typing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/BackgroundJob/DummyJobList.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php
index d8ec0479c78..be9c06257b7 100644
--- a/tests/lib/BackgroundJob/DummyJobList.php
+++ b/tests/lib/BackgroundJob/DummyJobList.php
@@ -68,7 +68,7 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
*
* @return IJob[]
*/
- public function getAll() {
+ public function getAll(): array {
return $this->jobs;
}
@@ -90,9 +90,6 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
/**
* get the next job in the list
- *
- * @param bool $onlyTimeSensitive
- * @return IJob|null
*/
public function getNext(bool $onlyTimeSensitive = false): ?IJob {
if (count($this->jobs) > 0) {
@@ -121,10 +118,7 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
}
}
- /**
- * @param int $id
- */
- public function getById($id): IJob {
+ public function getById(int $id): IJob {
foreach ($this->jobs as $job) {
if ($job->getId() === $id) {
return $job;