Skip to content

Commit 3e0b7fb

Browse files
tcitworldcome-nc
authored andcommitted
Fix typo in DAV namespace registration
See https://github.com/nextcloud/3rdparty/blob/b0afba6d6508a1c85332cf8c61e90ad91b289ebc/sabre/dav/lib/DAV/Xml/Service.php#L43 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 parent bab0881 commit 3e0b7fb

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

apps/dav/lib/Connector/Sabre/SharesPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function __construct(
9898
* @param \Sabre\DAV\Server $server
9999
*/
100100
public function initialize(\Sabre\DAV\Server $server) {
101-
$server->xml->namespacesMap[self::NS_OWNCLOUD] = 'oc';
101+
$server->xml->namespaceMap[self::NS_OWNCLOUD] = 'oc';
102102
$server->xml->elementMap[self::SHARETYPES_PROPERTYNAME] = ShareTypeList::class;
103103
$server->protectedProperties[] = self::SHARETYPES_PROPERTYNAME;
104104
$server->protectedProperties[] = self::SHAREES_PROPERTYNAME;

build/psalm-baseline.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -760,12 +760,6 @@
760760
<UndefinedFunction occurrences="1">
761761
<code>\Sabre\Uri\split($sabreNode-&gt;getPath())</code>
762762
</UndefinedFunction>
763-
<UndefinedPropertyAssignment occurrences="1">
764-
<code>$server-&gt;xml-&gt;namespacesMap</code>
765-
</UndefinedPropertyAssignment>
766-
<UndefinedPropertyFetch occurrences="1">
767-
<code>$server-&gt;xml-&gt;namespacesMap</code>
768-
</UndefinedPropertyFetch>
769763
</file>
770764
<file src="apps/dav/lib/Connector/Sabre/TagsPlugin.php">
771765
<NullableReturnStatement occurrences="1">

0 commit comments

Comments
 (0)