diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-11-07 12:02:03 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-11-07 12:02:03 +0100 |
commit | 17e7b6c7110e11c977852da91d62cab12cde0b49 (patch) | |
tree | d3395539142fff2338dea22cac3087b9860b4bba /lib/public/TextProcessing/Task.php | |
parent | fecf6425cff5d3d67fd874780189d053e70a0074 (diff) | |
download | nextcloud-server-17e7b6c7110e11c977852da91d62cab12cde0b49.tar.gz nextcloud-server-17e7b6c7110e11c977852da91d62cab12cde0b49.zip |
fix: split IProvider2 into two more verbose interfaces
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/public/TextProcessing/Task.php')
-rw-r--r-- | lib/public/TextProcessing/Task.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/TextProcessing/Task.php b/lib/public/TextProcessing/Task.php index f6b3a1a6a42..25b7132ee31 100644 --- a/lib/public/TextProcessing/Task.php +++ b/lib/public/TextProcessing/Task.php @@ -93,13 +93,13 @@ final class Task implements \JsonSerializable { /** * @psalm-param P $provider - * @param IProvider|IProvider2 $provider + * @param IProvider $provider * @return string * @since 27.1.0 */ - public function visitProvider(IProvider|IProvider2 $provider): string { + public function visitProvider(IProvider $provider): string { if ($this->canUseProvider($provider)) { - if ($provider instanceof IProvider2) { + if ($provider instanceof IProviderWithUserId) { $provider->setUserId($this->getUserId()); } return $provider->process($this->getInput()); |