Fix TooManyArguments warning for carddav.php

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/34563/head
Daniel Kesselberg 2022-10-12 19:39:07 +07:00
parent b054662d96
commit 1818be71ae
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
2 changed files with 1 additions and 4 deletions

@ -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());

@ -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>