]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix TooManyArguments warning for carddav.php 34563/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Wed, 12 Oct 2022 17:39:07 +0000 (19:39 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Sun, 16 Oct 2022 16:37:22 +0000 (18:37 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
apps/dav/appinfo/v1/carddav.php
build/psalm-baseline.xml

index 293ae4293d47d37c4937cede00349c7004ae1d1a..2b3001e80bdfada7215c9270b62673e3b6380610 100644 (file)
@@ -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());
index ec96d5843793969b6f661e1a7765c6a40185ed46..a29623e9a0f4ddcdd77ef9308e0d0f5c34e37342 100644 (file)
@@ -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>