Browse Source

Fix TooManyArguments for FakeLockerPlugin

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v26.0.0beta1
Daniel Kesselberg 1 year ago
parent
commit
934e75384c
No account linked to committer's email address
2 changed files with 1 additions and 6 deletions
  1. 1
    1
      apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php
  2. 0
    5
      build/psalm-baseline.xml

+ 1
- 1
apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php View File

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

+ 0
- 5
build/psalm-baseline.xml View File

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

Loading…
Cancel
Save