Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2022-10-12 21:17:00 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2022-10-12 21:17:00 +0300
commitba3646172fdbcb597ca98a0d975cc689d7c48775 (patch)
treea478dafc7929e179c57860a5fb859bcabf903a8d
parentd936694cdbd600c802a4368166f25d2f802235f5 (diff)
Fix TooManyArguments for FakeLockerPlugindebt/noid/fakelocker-too-many-arguments
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php2
-rw-r--r--build/psalm-baseline.xml5
2 files changed, 1 insertions, 6 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php b/apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php
index d05cd6d2e6d..7209450745c 100644
--- a/apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php
@@ -90,7 +90,7 @@ class FakeLockerPlugin extends ServerPlugin {
*/
public function propFind(PropFind $propFind, INode $node) {
$propFind->handle('{DAV:}supportedlock', function () {
- return new SupportedLock(true);
+ return new SupportedLock();
});
$propFind->handle('{DAV:}lockdiscovery', function () use ($propFind) {
return new LockDiscovery([]);
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 8132311ff87..b495809f648 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -463,11 +463,6 @@
<code>\Sabre\Uri\split($sourceNode-&gt;getPath())</code>
</UndefinedFunction>
</file>
- <file src="apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php">
- <TooManyArguments occurrences="1">
- <code>new SupportedLock(true)</code>
- </TooManyArguments>
- </file>
<file src="apps/dav/lib/Connector/Sabre/File.php">
<MoreSpecificImplementedParamType occurrences="1">
<code>$data</code>