diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2022-10-17 13:26:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 13:26:57 +0200 |
commit | 44d2eb8b4ec838652089be6018ae7240663781df (patch) | |
tree | 2145fb17eedb16d68978c0735494ecf9076455a3 | |
parent | e12df7941ea8c26981eaffe2a004b330f5b728f6 (diff) | |
parent | 1818be71ae724465ea435a61bf548dff630913f8 (diff) | |
download | nextcloud-server-44d2eb8b4ec838652089be6018ae7240663781df.tar.gz nextcloud-server-44d2eb8b4ec838652089be6018ae7240663781df.zip |
Merge pull request #34563 from nextcloud/debt/noid/carddav-too-many-arguments
Fix TooManyArguments warning for carddav.php
-rw-r--r-- | apps/dav/appinfo/v1/carddav.php | 2 | ||||
-rw-r--r-- | build/psalm-baseline.xml | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/apps/dav/appinfo/v1/carddav.php b/apps/dav/appinfo/v1/carddav.php index 293ae4293d4..2b3001e80bd 100644 --- a/apps/dav/appinfo/v1/carddav.php +++ b/apps/dav/appinfo/v1/carddav.php @@ -87,7 +87,7 @@ $server->httpRequest->setUrl(\OC::$server->getRequest()->getRequestUri()); $server->setBaseUri($baseuri); // Add plugins $server->addPlugin(new MaintenancePlugin(\OC::$server->getConfig(), \OC::$server->getL10N('dav'))); -$server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend, 'ownCloud')); +$server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend)); $server->addPlugin(new Plugin()); $server->addPlugin(new LegacyDAVACL()); diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index d91125d39cd..7f79c7789d8 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -60,9 +60,6 @@ </UndefinedGlobalVariable> </file> <file src="apps/dav/appinfo/v1/carddav.php"> - <TooManyArguments occurrences="1"> - <code>new \Sabre\DAV\Auth\Plugin($authBackend, 'ownCloud')</code> - </TooManyArguments> <UndefinedGlobalVariable occurrences="1"> <code>$baseuri</code> </UndefinedGlobalVariable> |