]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix TooManyArguments for FakeLockerPlugin 34565/head
authorDaniel Kesselberg <mail@danielkesselberg.de>
Wed, 12 Oct 2022 18:17:00 +0000 (20:17 +0200)
committerDaniel Kesselberg <mail@danielkesselberg.de>
Fri, 14 Oct 2022 13:06:38 +0000 (15:06 +0200)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
apps/dav/lib/Connector/Sabre/FakeLockerPlugin.php
build/psalm-baseline.xml

index d05cd6d2e6d3550db56798ffe060b0825c1369d1..7209450745cc4c6146352b4626f4da9f4e2ee9a6 100644 (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([]);
index ec96d5843793969b6f661e1a7765c6a40185ed46..9aeb1f421971777d5474ed393e136890577ccd15 100644 (file)
       <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>