Merge pull request #34565 from nextcloud/debt/noid/fakelocker-too-many-arguments

Fix TooManyArguments for FakeLockerPlugin
pull/34634/head
Christoph Wurst 2022-10-17 13:26:32 +07:00 committed by GitHub
commit e12df7941e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

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

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