From 7389567c7d05ba994533b7273cba1e5818a20b94 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 19 Jul 2023 13:15:14 +0200 Subject: Remove Task::factory method Signed-off-by: Marcel Klehr --- lib/private/TextProcessing/Db/Task.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/TextProcessing') diff --git a/lib/private/TextProcessing/Db/Task.php b/lib/private/TextProcessing/Db/Task.php index bc1bbdc13db..8e800c76df8 100644 --- a/lib/private/TextProcessing/Db/Task.php +++ b/lib/private/TextProcessing/Db/Task.php @@ -103,7 +103,7 @@ class Task extends Entity { } public function toPublicTask(): OCPTask { - $task = OCPTask::factory($this->getType(), $this->getInput(), $this->getuserId(), $this->getAppId(), $this->getIdentifier()); + $task = new OCPTask($this->getType(), $this->getInput(), $this->getuserId(), $this->getAppId(), $this->getIdentifier()); $task->setId($this->getId()); $task->setStatus($this->getStatus()); $task->setOutput($this->getOutput()); -- cgit v1.2.3